# HG changeset patch # User Jan Vrany # Date 1516228147 0 # Node ID 4141898684288d1dadfbfeec35c52d0bc4a18256 # Parent e32b9c4d319068cb8809ee03a137b265525c1b53 Fixed builtin C flags to include `-DBUILD_TARGET=...` diff -r e32b9c4d3190 -r 414189868428 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 " - "Modified: / 21-10-2016 / 11:24:25 / Jan Vrany " + "Modified: / 17-01-2018 / 22:23:46 / Jan Vrany " ! builtinCIncludeDirectories @@ -100,6 +100,12 @@ "Created: / 09-12-2015 / 16:59:13 / Jan Vrany " ! +getBuildTargetDefine + ^ '-DBUILD_TARGET=\"', Smalltalk configuration , '\"' + + "Created: / 17-01-2018 / 22:24:39 / Jan Vrany " +! + 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.