aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILDCONFIG.gn
diff options
context:
space:
mode:
Diffstat (limited to 'gn/BUILDCONFIG.gn')
-rw-r--r--gn/BUILDCONFIG.gn10
1 files changed, 8 insertions, 2 deletions
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn
index 80cc0986cc..0e93f0a6b6 100644
--- a/gn/BUILDCONFIG.gn
+++ b/gn/BUILDCONFIG.gn
@@ -164,12 +164,18 @@ if (target_os == "win") {
if (target_os == "win") {
if (msvc == 2017 && win_toolchain_version == "") {
win_toolchain_version = exec_script("//gn/highest_version_dir.py",
- [ "$win_vc/Tools/MSVC" ],
+ [
+ "$win_vc/Tools/MSVC",
+ "[0-9]{2}\.[0-9]{2}\.[0-9]{5}",
+ ],
"trim string")
}
if (win_sdk_version == "") {
win_sdk_version = exec_script("//gn/highest_version_dir.py",
- [ "$win_sdk/Include" ],
+ [
+ "$win_sdk/Include",
+ "[0-9]{2}\.[0-9]\.[0-9]{5}\.[0-9]",
+ ],
"trim string")
}
}