LLVMModule.st
changeset 21 64c5f01be2b3
parent 20 29174b92f44a
child 24 7e7ddd55174c
--- a/LLVMModule.st	Wed Aug 05 23:59:59 2015 +0100
+++ b/LLVMModule.st	Fri Aug 07 14:10:48 2015 +0100
@@ -179,7 +179,7 @@
     self writeBitcodeToFile: bitcode.
     assembly := bitcode withSuffix:'s'.  
     [ 
-        (OperatingSystem executeCommand: ('/usr/bin/llc-3.8 ', bitcode pathName)) ifFalse:[ 
+        (OperatingSystem executeCommand: (LLVMConfig bindir , Filename separator , 'llc ' , bitcode pathName)) ifFalse:[ 
             self error: 'Failed to generate assembly'.
         ].
         aStream nextPutAll: assembly contents asString.
@@ -189,6 +189,7 @@
     ].
 
     "Created: / 05-08-2015 / 23:46:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 07-08-2015 / 14:09:38 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !
 
 !LLVMModule methodsFor:'writing-bitcode'!