On Thursday, 27 July 2017 13:24:16 PDT Nash, George wrote: > Its due to a single design decision. SCons throws away all environment > variables. You must explicitly import the environment variables inside > SCons. Which we do for things like JAVA_HOME. The idea is that by > isolating the scons from the environment variables you reduce the "it works > on my system" situations that result from environment variables that exist > on one system and not the other. This also means throwing out everything > set by vcvarsall.bat script. > > You can manually modify scons to import PATH but vcarsall.bat does more than > just add cl.exe to the PATH. So scons will typically still have problems > finding some headers and such.
That's still somewhat stupid. It must obey the environment, especially PATH. Where is it going to find the compiler in the first place, even on Unix systems? Also, even GCC does have support for environment variables. Setting LD_LIBRARY_PATH is actually VERY common and may be required by the toolchain that the user installed. Overriding those and performing guesswork is stupid and far more likely to cause problems. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ iotivity-dev mailing list [email protected] https://lists.iotivity.org/mailman/listinfo/iotivity-dev
