We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd0c3c0 + 351f7f8 commit f3bd91dCopy full SHA for f3bd91d
Library/Homebrew/shims/super/cc
@@ -308,7 +308,10 @@ class Cmd
308
309
args << "-w" unless configure?
310
args << "-#{ENV["HOMEBREW_OPTIMIZATION_LEVEL"]}"
311
- args.concat(optflags) unless runtime_cpu_detection?
+ optflags.each do |optflag|
312
+ flag = optflag.split("=").first
313
+ args << optflag if !runtime_cpu_detection? || @args.none? { |arg| arg.start_with?(flag) }
314
+ end
315
args.concat(archflags)
316
args << "-std=#{@arg0}" if /c[89]9/.match?(@arg0)
317
args << "-g" if debug_symbols?
0 commit comments