#REFACTORING by cg
class: ParserFlags
changed:
#initializeSTCFlagsForTopDirectory:
#usedCompilerDefine
ask STCCompilerInterface for compilation flags;
not the OS
--- a/ParserFlags.st Thu Oct 13 10:57:10 2016 +0200
+++ b/ParserFlags.st Thu Oct 13 11:40:16 2016 +0200
@@ -619,7 +619,7 @@
|dfn|
dfn := ForcedCompiler.
- dfn isNil ifTrue:[ dfn := OperatingSystem getCCDefine].
+ dfn isNil ifTrue:[ dfn := STCCompilerInterface getCCDefine].
^ dfn
"
@@ -1862,9 +1862,9 @@
archArg := ' -m64'. "gcc -m64 needs -fPIC to make a shared library"
picArg := ' -fPIC'.
].
- CCCompilationOptions := OperatingSystem getCPUDefine,
+ CCCompilationOptions := STCCompilerInterface getCPUDefine,
' -D', self usedCompilerDefine,
- ' ', OperatingSystem getOSDefine,
+ ' ', STCCompilerInterface getOSDefine,
' ', '-O', archArg, picArg.
ParserFlags useClang ifTrue:[
CCPath := 'clang'