Revert "Add the cwg to the prebuilt module cache path." (#2160)

This reverts commit 5298b418eec4129351888f41cb7c3bfc90161e22.

This commit was mistakenly committed. PR was opened in #1730, but it was
closed and moved to #1761. I didn't notice this and created another PR
in #1980.

This change was causing 100+ failures in runtime cxxmodules nightlies.
(Eg. https://epsft-jenkins.cern.ch/job/root-pullrequests-build/29183/testReport/junit/projectroot/runtutorials/tutorial_fit_FittingDemo/)
We want to have **proper** PrebuildModulesPaths which information were
extracted from LD_LIBRARY_PATH and DYLD_LIBRARY_PATH, not a random ".".

Because of this commit, we were trying to autoload libraries generated
by roottest on-demand (for example "./h1analysisTreeReader_C.so") This
is not an intentional behavior, these autogenerated libraries are
already loaded by roottest and what we want to do is to load **proper**
libraries like libHist.so instead.
This commit is contained in:
Yuka Takahashi 2018-06-07 15:48:36 +02:00 committed by sftnight
parent 35a8988d50
commit 0d478d0fc4

View File

@ -1092,7 +1092,6 @@ static void stringifyPreprocSetting(PreprocessorOptions& PPOpts,
auto& HS = CI->getHeaderSearchOpts();
addPrebuiltModulePaths(HS, getPathsFromEnv(getenv("LD_LIBRARY_PATH")));
addPrebuiltModulePaths(HS, getPathsFromEnv(getenv("DYLD_LIBRARY_PATH")));
HS.AddPrebuiltModulePath(".");
}
// Set up compiler language and target