0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/build_extra/toolchain/validate.gni

19 lines
877 B
Text

# Copyright 2018 the Deno authors. All rights reserved. MIT license.
import("//build/toolchain/cc_wrapper.gni")
# Verify that the cc_wrapper/toolchain combo correctly set up on Windows.
if (is_win && cc_wrapper != "") {
cc_wrapper_toolchain = "//build_extra/toolchain/win:win_clang_$target_cpu"
toolchain_supports_cc_wrapper = cc_wrapper_toolchain == default_toolchain &&
cc_wrapper_toolchain == host_toolchain
if (!toolchain_supports_cc_wrapper) {
# Using print instead of assert-with-message for readability of the output.
print("The 'cc_wrapper' option isn't supported by the default Windows" +
" toolchain. To make it work, add these gn arguments:")
print(" custom_toolchain=\"$cc_wrapper_toolchain\"")
print(" host_toolchain=\"$cc_wrapper_toolchain\"")
assert(toolchain_supports_cc_wrapper)
}
}