From 26f54569b46d3d2daae838cf55195d436be7ac80 Mon Sep 17 00:00:00 2001 From: Danilo Piparo <danilo.piparo@cern.ch> Date: Fri, 7 Sep 2018 15:41:02 +0200 Subject: [PATCH] [Dictgen] ROOT-9635 ROOT-9615: filter out unwanted rootcling args. --- core/dictgen/src/rootcling_impl.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/core/dictgen/src/rootcling_impl.cxx b/core/dictgen/src/rootcling_impl.cxx index ba69c28bed2..c1094a181cb 100644 --- a/core/dictgen/src/rootcling_impl.cxx +++ b/core/dictgen/src/rootcling_impl.cxx @@ -3734,9 +3734,13 @@ bool IsImplementationName(const std::string &filename) int ShouldIgnoreClingArgument(const std::string& argument) { - if (argument == "-pipe") return 1; - if (argument == "-fPIC") return 1; - if (argument == "-fpic") return 1; + auto vetos = {"-pipe", "-fPIC", "-fpic", + "-fno-plt", "--save-temps" }; + + for (auto veto : vetos) { + if (argument == veto) return 1; + } + if (ROOT::TMetaUtils::BeginsWith(argument, "--gcc-toolchain=")) return 1; -- GitLab