On Mon, Oct 7, 2013 at 9:25 AM, Christopher Sean Morrison <[email protected]> wrote: > Tom, > > A word of caution on the below path that you're starting down, as it's one > we've ... > we instead perform a test of that flag, ignorant of the compiler type: > > if(ENABLE_DEBUG) > CHECK_C_FLAG(g VARS DEBUG_FLAG) > CHECK_C_FLAG(debug VARS DEBUG_FLAG) > CHECK_C_FLAG(D VARS DEBUG_FLAG) > endif
Okey-dokey, I think I understand: so that means, for a new compiler, we add tests for needed flags and add the ones that are recognized--will do when necessary. The problems I'm running into at the moment seem to require the user's environment to change for some compilers. For example, before running Intel's icpc (C++) one has to be sure a script is run before the first call to the compiler to ensure Intel libs and headers come before any other (and such should not pollute one's normal development environment--unfortunately Intel's scripts export all vars so a local version might be necessary). Some consequences of the above are that I am not using the CMake plugin for Jenkins because it isn't flexible enough in such cases. I have added a "scripts" subdir under my $JENKINS_HOME and am creating a script for each build job which does such needed prep work first, then runs CMake configure, and then runs make, etc. > The latter is more future-proof to changes in a compiler and is more likely to > support some compiler we've never tested. ... > The hacking file talks about this briefly in the build system section under > style and conventions. I looked at it again and it makes more sense now. > With the below commit, the first mismatch test is compiler agnostic and > certainly not a problem if you encountered a case where a mismatch was > incompatible. I'd be interested in knowing what you ran into there. I've not had any problem--it was just a thought as I was working on the compiler ID part (all since removed). Best, -Tom ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ BRL-CAD Developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/brlcad-devel
