-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend/os/linux/extend/ENV/super.rb: add homebrew_extra_include_paths
- Loading branch information
1 parent
167bfd8
commit 82059ce
Showing
1 changed file
with
11 additions
and
0 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 |
---|---|---|
|
@@ -37,6 +37,17 @@ def homebrew_extra_paths | |
paths | ||
end | ||
|
||
def homebrew_extra_isystem_paths | ||
paths = [] | ||
# Add paths for GCC headers when building against [email protected] because we have to use -nostdinc. | ||
if deps.any? { |d| d.name == "[email protected]" } | ||
gcc_include_dir = Utils.safe_popen_read("#{cc} --print-file-name=include").chomp | ||
gcc_include_fixed_dir = Utils.safe_popen_read("#{cc} --print-file-name=include-fixed").chomp | ||
paths << gcc_include_dir << gcc_include_fixed_dir | ||
end | ||
paths | ||
end | ||
|
||
def determine_rpath_paths(formula) | ||
PATH.new( | ||
*formula&.lib, | ||
|