Skip to content

Commit

Permalink
Pass --target when discovering system includes.
Browse files Browse the repository at this point in the history
Fixes issue 715
  • Loading branch information
jacobdufault authored and decimad committed Jul 13, 2018
1 parent c03b7a3 commit e1d0e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/project.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const std::vector<std::string>& GetSystemIncludes(
// Capture these flags in |extra_flags|, since they may change system include
// directories.
static std::vector<std::string> kFlagsToPass = {
"--gcc-toolchain", "--sysroot", "-isysroot", "-stdlib"};
"--gcc-toolchain", "--sysroot", "-isysroot", "-stdlib", "--target"};
static std::vector<std::string> kStandaloneFlagsToPass = {
"-nostdinc", "-nostdinc++", "-nobuiltininc"};
std::vector<std::string> extra_flags;
Expand Down

0 comments on commit e1d0e07

Please sign in to comment.