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).
This commit is contained in:
Moritz Bunkus 2021-02-17 23:48:50 +01:00
parent bae7f2a11d
commit d2aceb1b34
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85

View File

@ -341,7 +341,7 @@ cxx_compiler = lambda do |*args|
pchu = pchi.use_flags ? " #{pchi.use_flags}" : "" pchu = pchi.use_flags ? " #{pchi.use_flags}" : ""
pchx = pchi.extra_flags ? " #{pchi.extra_flags}" : "" pchx = pchi.extra_flags ? " #{pchi.extra_flags}" : ""
lang = pchi.language ? pchi.language : "c++" lang = pchi.language ? pchi.language : "c++"
flags = $flags[:cxxflags] flags = $flags[:cxxflags].dup
if %r{lib/fmt/}.match(source) if %r{lib/fmt/}.match(source)
flags.gsub!(%r{-Wpedantic}, '') flags.gsub!(%r{-Wpedantic}, '')