shims/super/cc: don't strip prefixes with --debug-symbols
This commit is contained in:
parent
1f306b4d15
commit
0820c19417
@ -318,7 +318,7 @@ class Cmd
|
|||||||
args << "-nostdinc" if @deps.include?("glibc@2.13")
|
args << "-nostdinc" if @deps.include?("glibc@2.13")
|
||||||
# Ideally this would be -ffile-prefix-map, but that requires a minimum of GCC 8, LLVM Clang 10 or Apple Clang 12
|
# Ideally this would be -ffile-prefix-map, but that requires a minimum of GCC 8, LLVM Clang 10 or Apple Clang 12
|
||||||
# and detecting the version dynamically based on what `HOMEBREW_CC` may have been rewritten to point to is awkward
|
# and detecting the version dynamically based on what `HOMEBREW_CC` may have been rewritten to point to is awkward
|
||||||
args << "-fdebug-prefix-map=#{formula_buildpath}=." if formula_buildpath
|
args << "-fdebug-prefix-map=#{formula_buildpath}=." if formula_buildpath && !debug_symbols?
|
||||||
args
|
args
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -447,7 +447,7 @@ class Cmd
|
|||||||
end
|
end
|
||||||
|
|
||||||
def oso_prefix?
|
def oso_prefix?
|
||||||
config.include?("o") && !configure?
|
config.include?("o") && !configure? && !debug_symbols?
|
||||||
end
|
end
|
||||||
|
|
||||||
def ld_classic?
|
def ld_classic?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user