On 12/04/2017 20:40, Maxime Boissonneault wrote:
That's interesting, but I'm thinking a more generic answer (extra_args flag) might be useful. Surely, NAMD is not the only software which might require that kind of special flags.

We don't have a toolchain option to specify additional compiler flags (yet), but how about modifying $CXXFLAGS before 'make' is run by EasyBuild with:

    prebuildopts = 'export CXXFLAGS="$CXXFLAGS --std=c++11 -ip" && '


regards,

Kenneth


On 17-04-12 14:21, Åke Sandgren wrote:
I have a new namd easyblock pending that fixes this already.
Just need a fix in framework since it's doing things wrong in my opinion.

On 04/12/2017 08:12 PM, Maxime Boissonneault wrote:
Hi,

For the latest version of NAMD, we need to add "--std=c++11 -ip" to the
CXXFLAGS when compiling with Intel compilers.

How would we do that from the EasyConfig file ?


For now, the only hack that would make it work is :

toolchainopts = {'cstd':'c++11 -ip'}
but it is a hack that relies on having the value of cstd not being
quoted when transformed into CXXFLAGS.

What would be the proper way ?

I would expect having something like :

toolchainopts = {'extra_args':'whatever we need'}

Thoughts ?




Reply via email to