diff options
author | 2015-06-01 09:11:02 +0000 | |
---|---|---|
committer | 2015-06-01 15:49:50 +0000 | |
commit | 04034343bdb60d823aaecfae03753d525b345430 (patch) | |
tree | 57a4f95280f4ac7037db9ae01304b6923e5ae58d /src/main/java/com/google/devtools/build/lib/rules | |
parent | 2b17ce29daefb3a49f2552c417349c35cb4ff715 (diff) |
Add the --sysroot argument even if it is the default for the particular Crosstool.
This makes integrating Bazel with an external Android NDK less complex, and removes a special-case from the behavior of Bazel, which is always good.
--
MOS_MIGRATED_REVID=94893919
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java index 10ba9c8f37..78570210b0 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CppConfiguration.java @@ -561,8 +561,7 @@ public class CppConfiguration extends BuildConfiguration.Fragment { runtimeSysroot = defaultSysroot; String sysrootFlag; - if (sysroot != null && !sysroot.equals(defaultSysroot)) { - // Only specify the --sysroot option if it is different from the built-in one. + if (sysroot != null) { sysrootFlag = "--sysroot=" + sysroot; } else { sysrootFlag = null; |