imageworks/Field3D

Set compiler name from within Site.py

Closed this issue · 4 comments

I'd like to be able to define the compiler name from within a Site.py file. I auto-generate the Site.py file per OS and often I need to specify a non-default compiler (either a different version of gcc or a non-gcc compiler altogether).

Do you need to set it in Site.py or would an argument to scons work as well? I was planning on adding:
env.Replace(CXX = ARGUMENTS.get("cxx", "g++"))

Hi Magnus,
Arguments would work as well. I'm working on doing a build via rpm and
just need a way to specify the compiler from an rpm spec file. Thanks!

Trevor Thomson

On Tue, May 28, 2013 at 1:45 AM, Magnus Wrenninge
notifications@github.comwrote:

Do you need to set it in Site.py or would an argument to scons work as
well? I was planning on adding:
env.Replace(CXX = ARGUMENTS.get("cxx", "g++"))


Reply to this email directly or view it on GitHubhttps://github.com//issues/68#issuecomment-18532295
.

Hi Trevor, sorry it took a while to get this committed. The master branch has been updated as of 5d4be64.

Just use 'scons compiler=clang', etc. to switch out the compiler.

Thanks! I'll check it out.

Trevor Thomson

On Sun, Jul 14, 2013 at 10:43 PM, Magnus Wrenninge <notifications@github.com

wrote:

Hi Trevor, sorry it took a while to get this committed. The master branch
has been updated as of 5d4be645d4be64
.

Just use 'scons compiler=clang', etc. to switch out the compiler.


Reply to this email directly or view it on GitHubhttps://github.com//issues/68#issuecomment-20949615
.