1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 08:39:09 -05:00
denoland-deno/build_extra/toolchain/validate.gni
Bert Belder 3bcf7e271f
Build: make it possible to use ccache/sccache on windows
Also auto-detect the availability of sccache in setup.py.
2018-08-25 14:16:41 +02:00

15 lines
596 B
Text

# 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 != "")
}