Skip to content

Commit

Permalink
shims/super/cc: don't strip prefixes with --debug-symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed Sep 15, 2024
1 parent 1f306b4 commit 0820c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/shims/super/cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class Cmd
args << "-nostdinc" if @deps.include?("[email protected]")
# 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
args << "-fdebug-prefix-map=#{formula_buildpath}=." if formula_buildpath
args << "-fdebug-prefix-map=#{formula_buildpath}=." if formula_buildpath && !debug_symbols?
args
end
Expand Down Expand Up @@ -447,7 +447,7 @@ class Cmd
end
def oso_prefix?
config.include?("o") && !configure?
config.include?("o") && !configure? && !debug_symbols?
end
def ld_classic?
Expand Down

0 comments on commit 0820c19

Please sign in to comment.