commit | 6c7ad13f8974cb876e6eab6c2f57b155de1c6516 | [log] [tgz] |
---|---|---|
author | Rui Ueyama <ruiu@google.com> | Fri Sep 02 19:20:33 2016 +0000 |
committer | Rui Ueyama <ruiu@google.com> | Fri Sep 02 19:20:33 2016 +0000 |
tree | 805d88c9313e73803f27ca85afec000996eebe35 | |
parent | c50dfe38aca653ca36052ea8969ae716c59a2b70 [diff] [blame] |
Add -nostdlib. llvm-svn: 280528
diff --git a/lld/ELF/LinkerScript.cpp b/lld/ELF/LinkerScript.cpp index c1ce76c..3872d30 100644 --- a/lld/ELF/LinkerScript.cpp +++ b/lld/ELF/LinkerScript.cpp
@@ -870,7 +870,8 @@ void ScriptParser::readSearchDir() { expect("("); - Config->SearchPaths.push_back(next()); + if (!Config->Nostdlib) + Config->SearchPaths.push_back(next()); expect(")"); }