[WORKER] Add workaround for VSCMD_* environment variables (#10)

Should fix MSVC_x64 build failing since 2ffcda90b2
This commit is contained in:
Stanislav Motylkov 2023-08-09 13:08:36 +03:00 committed by GitHub
parent 90f80a36f7
commit 2b07c9c3c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
worker/configure vendored
View File

@ -25,6 +25,11 @@ cd $ROS_OUTPUT
if which cl &>/dev/null; then if which cl &>/dev/null; then
# MSVC environment # MSVC environment
if [ "$ROS_ARCH" = "amd64" ]; then
export VSCMD_ARG_HOST_ARCH="x64"
export VSCMD_ARG_TGT_ARCH="x64"
fi
$TIME cmake -G 'Ninja' -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=$ROS_ARCH -DRUNTIME_CHECKS:BOOL=0 $@ $SOURCEDIR $TIME cmake -G 'Ninja' -DCMAKE_TOOLCHAIN_FILE:FILEPATH=toolchain-msvc.cmake -DARCH:STRING=$ROS_ARCH -DRUNTIME_CHECKS:BOOL=0 $@ $SOURCEDIR
else else
# GCC environment # GCC environment