Discussion:
[Sdcc-user] OS X change preprocessor
Philipp Klaus Krause
2017-07-01 07:16:37 UTC
Permalink
Hi,
On OS X, Apple has decided to symlink `gcc` to `clang` (and all related
tools to their clang equivalents). So, I need to use `gcc-7`
specifically to use `gcc`. Is there a way to pass options to sdcc to use
`gcc-7` instead of `gcc`? Specifically, it uses `cpp` in SDCCmain.c
Thanks
According to ./configure --help output, setting CC, CXX, CPP and CXXCPP
should allow you to set the compiler and preprocessor used to compile SDCC.

Philipp

P.S.: I also use these on Debian GNU/Linux when I want to compile SDCC
with a GCC version newer than the default.
Erik Petrich
2017-07-01 09:04:28 UTC
Permalink
Hi,On OS X, Apple has decided to symlink `gcc` to `clang` (and all related
tools to their clang equivalents). So, I need to use `gcc-7` specifically to
use `gcc`. Is there a way to pass options to sdcc to use `gcc-7` instead of
`gcc`? Specifically, it uses `cpp` in SDCCmain.c
If you are just using SDCC, rather than trying to build it, you probably
don't need to do anything at all. The references in SDCCmain.c to cpp will
ultimately call an executable named "sdcpp" which is SDCC's customized
version of gcc's preprocessor rather than use the system's generic C
preprocessor.

Erik

Continue reading on narkive:
Loading...