mirror of
https://github.com/denoland/deno.git
synced 2024-11-14 16:33:45 -05:00
531a427d88
This brings behavior inline with the unix toolchain, which also leaves cc_wrapper unquoted. If necessary, add quotes in the setup phase instead.
28 lines
1.1 KiB
Text
28 lines
1.1 KiB
Text
# Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
|
|
|
# The toolchain definitions in BUILD.gn are derived from Chromium's default
|
|
# Windows toolchain. The only difference is that the 'cc_wrapper' build option
|
|
# is honored, so we can use ccache or an equivalent tool.
|
|
#
|
|
# 'BUILD.gn' was generated as follows (using GNU sed):
|
|
#
|
|
# (echo -e '# Automatically generated. See mods.gni.\n' |
|
|
# cat - ../../../build/toolchain/win/BUILD.gn |
|
|
# sed '0,/import/s|import|import("mods.gni")\n&|' |
|
|
# sed 's|exec_script("|&$base_toolchain_dir/|' |
|
|
# sed 's|${goma_prefix}|&${cc_wrapper_prefix}|' ) > BUILD.gn
|
|
# gn format BUILD.gn
|
|
|
|
# Ensure the 'cc_wrapper' variable is in scope.
|
|
import("//build/toolchain/cc_wrapper.gni")
|
|
|
|
# Location of the original toolchain definition that this one is derived from.
|
|
# Some python scripts that are run by BUILD.gni live here.
|
|
base_toolchain_dir = "//build/toolchain/win"
|
|
|
|
# If cc_wrapper if is set, add a space to it.
|
|
if (cc_wrapper == "") {
|
|
cc_wrapper_prefix = ""
|
|
} else {
|
|
cc_wrapper_prefix = "$cc_wrapper "
|
|
}
|