One trick would be to have cc as a symlink to GCC somewhere, & add that location to your path.
E.g. (assuming bash) mkdir ~/bin ln -s `which gcc` ~/bin/cc PATH=$HOME/bin:$PATH scons Cheers On Jun 13, 2010, at 8:04 PM, pikpik wrote: > Hello, > > Progress: > > I've gotten SCons to recognize MINIX as a platform, and I have options > in the SConstruct files which mirror Linux's settings. "src/platform- > minix.cc" is a copy of "src/platform-linux.cc," but it doesn't have > appropriate code for MINIX yet. > > > Problem: > > Just to see how much I had working, I tried building with SCons. > Here's what I got: (more or less verbatim) > > $ scons > scons: Reading SConscript files ... > scons: done reading SConscript files. > scons: Building targets ... > cc -o obj/release/dtoa-config.o -c -Werror -Wno-uninitialized -m32 -03 > -fomit-frame-pointer -fdata-sections -ffunction-sections =ansi > =DV8_TARGET_ARCHIA32 -DENABLE_VMSTATE_TRACKING - > DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_SUPPORT -Isrc src/dtoa- > config.c > cc: -fomit-frame-pointer: unknown option > cc: -fdata-sections: unknown option > cc: -ffunction-sections: unknown option > cc: -ansi: unknown option > cc: 32: unsupported architecture > scons: *** [obj/release/dtoa-config.o] Error 1 > scons: building terminated because of errors. > $ _ > > > So, SCons seems to use the "cc" compiler. MINIX 3 has CC as the MINIX > 3 C compiler from the Amsterdam Compiler Kit (ACK), instead of the CC > from GCC. > > Would you know where to set SCons to use GCC instead of CC? > > Thank you, > Stephen Hatton > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
