[lld] r310835 - [ELF] - Ignore --plugin-opt=mcpu= and --plugin-opt=thinlto.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 14 05:36:14 PDT 2017
Author: grimar
Date: Mon Aug 14 05:36:14 2017
New Revision: 310835
URL: http://llvm.org/viewvc/llvm-project?rev=310835&view=rev
Log:
[ELF] - Ignore --plugin-opt=mcpu= and --plugin-opt=thinlto.
Attemp to fix BB.
Previously we ignored all --plugin-opt options,
but now (after r310826) error out on non implemented ones.
This caused BB to fail:
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux/builds/3405/steps/check-cfi-and-supported%20in%20gcc%20build/logs/stdio
Modified:
lld/trunk/ELF/Driver.cpp
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=310835&r1=310834&r2=310835&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Mon Aug 14 05:36:14 2017
@@ -714,8 +714,10 @@ void LinkerDriver::readConfigs(opt::Inpu
else if (S.startswith("jobs="))
Config->ThinLTOJobs = parseInt(S.substr(5), Arg);
// Ignore some options always passed by gcc.
+ // FIXME: support --plugin-opt=mcpu= and --plugin-opt=thinlto.
else if (!S.startswith("/") && !S.startswith("-fresolution=") &&
- !S.startswith("-pass-through="))
+ !S.startswith("-pass-through=") && !S.startswith("mcpu=") &&
+ !S.startswith("thinlto"))
error(Arg->getSpelling() + ": unknown option: " + S);
}
if (Config->LTOO > 3)
More information about the llvm-commits
mailing list