diff options
author | 2016-09-21 13:16:48 -0800 | |
---|---|---|
committer | 2016-09-21 14:31:57 -0700 | |
commit | 999b794c137d12d73adbf41dcbe9383a0cd94769 (patch) | |
tree | 90a58d6f358e4dff917912d46cbb1fbf89536ff4 /third_party/gpus/crosstool/clang | |
parent | 8e308a8493436fdd7b555837d36459fb232bc7c2 (diff) |
Merge changes from github.
Change: 133874452
Diffstat (limited to 'third_party/gpus/crosstool/clang')
-rwxr-xr-x | third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl b/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl index b32bb966cf..d3bb93c036 100755 --- a/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl +++ b/third_party/gpus/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc.tpl @@ -95,6 +95,7 @@ def GetHostCompilerOptions(argv): parser.add_argument('-iquote', nargs='*', action='append') parser.add_argument('--sysroot', nargs=1) parser.add_argument('-g', nargs='*', action='append') + parser.add_argument('-fno-canonical-system-headers', action='store_true') args, _ = parser.parse_known_args(argv) @@ -106,6 +107,8 @@ def GetHostCompilerOptions(argv): opts += ' -iquote ' + ' -iquote '.join(sum(args.iquote, [])) if args.g: opts += ' -g' + ' -g'.join(sum(args.g, [])) + if args.fno_canonical_system_headers: + opts += ' -fno-canonical-system-headers' if args.sysroot: opts += ' --sysroot ' + args.sysroot[0] |