Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Feb 22, 2024
1 parent c1f08b8 commit 76ef0bc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/common_tools.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

# Source build-env.sh if found.
SCRIPT_DIR=`dirname $0`
CWD=`readlink -f $0`
SCRIPT_DIR=`dirname ${CWD}`
if [ -e "${SCRIPT_DIR}/build-env.sh" ] ; then
source "${SCRIPT_DIR}/build-env.sh"
fi
Expand Down Expand Up @@ -868,7 +869,7 @@ compile_cpp_for_target()
# configure makefiles first so compile_commands.json gets exported
mkdir -p "hack"
pushd "hack" > /dev/null
eval "$(../../scripts/vcvarsall.sh x64)"
eval "$(${SCRIPT_DIR}/vcvarsall.sh x64)"
echo "ECHO ${CMAKE} ${CMAKE_EXTRA_ARGS} -G ${NMAKE_CMAKE_GENERATOR} ${CMAKE_ARGS[@]} ${TOOLCHAIN_FILE} ${PREFIX_PATH} ${CMAKELISTS_DIR}"
"${CMAKE}" ${CMAKE_EXTRA_ARGS} -G "${NMAKE_CMAKE_GENERATOR}" "${CMAKE_ARGS[@]}" "${TOOLCHAIN_FILE}" "${PREFIX_PATH}" "${CMAKELISTS_DIR}"
local CMAKE_RESULT=$?
Expand Down

0 comments on commit 76ef0bc

Please sign in to comment.