[PATCH] D42390: msan: Pass --disable-new-dtags for tests
Don Hinton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 01:35:07 PST 2018
hintonda added a comment.
Thanks for the explanation.
Since it's a problem with your particular environment, I think you should fix that instead. You can eliminate the need to export LD_LIBRARY_PATH to run your host compiler by creating a simple script and symlink it to clang and clang++, e.g., here's a simple example...
$ cat run_clang.sh
#!/bin/sh
name=`basename $0`
prefix=<host clang prefix>
LD_LIBRARY_PATH=$prefix/lib $prefix/bin/$name $@
$ ln -s run_clang.sh clang
$ ln -s run_clang.sh clang++
Then you can get rid of the global LD_LIBRARY_PATH, and run cmake like this `CC=<path to run_clang.sh>/clang cmake ../llvm`. No need to pass CXX since cmake will set it automatically based on CC.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D42390
More information about the llvm-commits
mailing list