diff options
Diffstat (limited to 'build_extra/toolchain/validate.gni')
-rw-r--r-- | build_extra/toolchain/validate.gni | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/build_extra/toolchain/validate.gni b/build_extra/toolchain/validate.gni new file mode 100644 index 000000000..79c013e8d --- /dev/null +++ b/build_extra/toolchain/validate.gni @@ -0,0 +1,15 @@ +# Copyright 2018 the Deno authors. All rights reserved. MIT license. + +import("//build/toolchain/cc_wrapper.gni") + +# Verify that cc_wrapper is correctly set up on Windows. +if (is_win && cc_wrapper != "" && custom_toolchain == "") { + suggested_toolchain = "//build_extra/toolchain/win:win_clang_$target_cpu" + + # Use print instead of assert with message for readability. + print( + "The 'cc_wrapper' option isn't supported by the default Windows toolchain.") + print("To make it work, add the option:") + print(" custom_toolchain=\"$suggested_toolchain\"") + assert(custom_toolchain != "") +} |