Skip to content

Commit

Permalink
extend/os/linux/extend/ENV/super.rb: add homebrew_extra_include_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnachun committed Jul 17, 2022
1 parent 167bfd8 commit 82059ce
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Library/Homebrew/extend/os/linux/extend/ENV/super.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 82059ce

Please sign in to comment.