-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shims/super/cc: don't strip prefixes with
--debug-symbols
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -447,7 +447,7 @@ class Cmd | |
end | ||
def oso_prefix? | ||
config.include?("o") && !configure? | ||
config.include?("o") && !configure? && !debug_symbols? | ||
end | ||
def ld_classic? | ||
|