4 ms·
The commit sounds like the people using OpenBSD for these processors will have two compilers installed. I am not a programmer but I am curious: how does one se
by Crontab 9y ago
The commit sounds like the people using OpenBSD for these processors will have two compilers installed.
I am not a programmer but I am curious: how does one select GCC as a compiler if the default is Clang? Just change what CC links to?
- voutilad 9y agoFor projects that use configuration frameworks it's often just setting an environment variable like CC or CXX to point to the compiler(s) you want and they'll use those particular binaries when building. If there is a symlink it's probably ill advised to change it since it would be system-wide.
- kev009 9y agoMake and most other build systems respect the CC and CXX variables. Switching compilers is a very common thing among systems developers.. bootstrapping OS builds, crosscompiling for a different arch, getting compiler feedback from another compiler, etc
- bch 9y agoThere are env variables as others have mentioned, and additionally in NetBSD it's configurable in mk.conf[0]. I know, Net is not Open, but they look remarkably similar in this toolchain regard for system/package builds. Can't speak to Free or Dragon Fly, though. I wouldn't be surprised if they've diverged. [0] https://wiki.netbsd.org/tutorials/pkgsrc/clang/ https://wiki.netbsd.org/tutorials/pkgsrc/clang/