mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-23 19:31:44 +00:00
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:
parent
bae7f2a11d
commit
d2aceb1b34
2
Rakefile
2
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}, '')
|
||||
|
Loading…
Reference in New Issue
Block a user