diff options
author | Simo Fält <simo.falt@qt.io> | 2024-04-29 14:19:20 +0300 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2024-04-30 06:55:02 +0000 |
commit | 0fdd1cfb4793ff1aaad5d66670d1b1beff23bc75 (patch) | |
tree | 796a4cfd494acea31ae6a2a55bff57e05a4387df | |
parent | b5cbb40f4593e8576deb4632c70399cf30b9bc35 (diff) |
CI: Add VC_SCRIPT env variable for setting MSVC 2022 env
Change-Id: I67ebac2d660c084f29ec2f6be0dc8cc2503e3976
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r-- | coin/instructions/find_path_to_msvc_compiler.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/coin/instructions/find_path_to_msvc_compiler.yaml b/coin/instructions/find_path_to_msvc_compiler.yaml index 8f9bed82f..015a86eab 100644 --- a/coin/instructions/find_path_to_msvc_compiler.yaml +++ b/coin/instructions/find_path_to_msvc_compiler.yaml @@ -18,6 +18,13 @@ instructions: condition: property property: host.compiler equals_value: MSVC2019 + - type: EnvironmentVariable + variableName: VC_SCRIPT + variableValue: "\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\VC\\Auxiliary\\Build\\vcvarsall.bat" + enable_if: + condition: property + property: host.compiler + equals_value: MSVC2022 - type: WriteFile fileContents: "call \"{{.Env.VC_SCRIPT}}\" {{.Env.TARGET_ARCHITECTURE}} \r\ncmd /c %*" filename: "c:\\users\\qt\\MSVC.bat" |