Fixed builtin C flags to include `-DBUILD_TARGET=...` jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 17 Jan 2018 22:29:07 +0000
branchjv
changeset 4212 414189868428
parent 4205 e32b9c4d3190
child 4220 c02671bebd0a
Fixed builtin C flags to include `-DBUILD_TARGET=...`
STCCompilerInterface.st
--- a/STCCompilerInterface.st	Tue Oct 17 23:20:15 2017 +0100
+++ b/STCCompilerInterface.st	Wed Jan 17 22:29:07 2018 +0000
@@ -53,10 +53,10 @@
     "Return C compiler flags that are always passed to the C compiler
      when a (ST)C file is compiled."
 
-    ^ self getCPUDefine , ' ', self getOSDefine
+    ^ self getCPUDefine , ' ', self getOSDefine , ' ' , self getBuildTargetDefine
 
     "Created: / 04-12-2015 / 16:41:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 21-10-2016 / 11:24:25 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 17-01-2018 / 22:23:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 builtinCIncludeDirectories
@@ -100,6 +100,12 @@
     "Created: / 09-12-2015 / 16:59:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+getBuildTargetDefine
+    ^ '-DBUILD_TARGET=\"', Smalltalk configuration , '\"'
+
+    "Created: / 17-01-2018 / 22:24:39 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 getCCDefine
     "return a string which was used to identify the C-Compiler used
      when STX was compiled, and which should be passed down when compiling methods.