public
Description: Reia is a Ruby/Python-like language for BEAM, the Erlang VM
Homepage: http://reia-lang.org
Clone URL: git://github.com/tarcieri/reia.git
Better approach to determining HiPE availability
Tony Arcieri (author)
Fri Aug 22 14:51:02 -0700 2008
commit  29a091f9a10296127999e808c92d36f669703c33
tree    293b83df25eeee8f667f1ecdc91976e229e9890c
parent  7532f4c4e9b93abec4ef9ca6208fdaa81970c69d
...
19
20
21
22
23
24
 
 
 
25
26
...
19
20
21
 
 
 
22
23
24
25
26
0
@@ -19,7 +19,7 @@ build(_) ->
0
   {error, "invalid module"}.
0
   
0
 hipe_available() ->
0
- case string:str(erlang:system_info(system_version), "[hipe]") of
0
- 0 -> false;
0
- _ -> true
0
+ case erlang:system_info(hipe_architecture) of
0
+ undefined -> false;
0
+ _ -> true
0
   end.
0
\ No newline at end of file

Comments

    No one has commented yet.