From d2aceb1b34bd73cb1dbca4623496f2ab2cbba59b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 17 Feb 2021 23:48:50 +0100 Subject: [PATCH] build system: don't mess with global flags Otherwise parts of the files might be compiled with different optimization settings which a) isn't allowed when using pre-copmpiled headers and b) isn't what we want anyway (safe for the one file we need it for). --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 0c48d7751..56fa8f74a 100644 --- a/Rakefile +++ b/Rakefile @@ -341,7 +341,7 @@ cxx_compiler = lambda do |*args| pchu = pchi.use_flags ? " #{pchi.use_flags}" : "" pchx = pchi.extra_flags ? " #{pchi.extra_flags}" : "" lang = pchi.language ? pchi.language : "c++" - flags = $flags[:cxxflags] + flags = $flags[:cxxflags].dup if %r{lib/fmt/}.match(source) flags.gsub!(%r{-Wpedantic}, '')