Skip to content

Commit

Permalink
fix darwin cxx
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Aug 26, 2024
1 parent 600781c commit 7a2e399
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build_tools/ci/build_test_cpp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ CMAKE_ARGS="\
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$install_dir \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_EXE_LINKER_FLAGS_INIT="-fuse-ld=lld" \
-DCMAKE_SHARED_LINKER_FLAGS_INIT="-fuse-ld=lld" \
-DCMAKE_MODULE_LINKER_FLAGS_INIT="-fuse-ld=lld" \
-DCMAKE_C_COMPILER="${CC}" \
-DCMAKE_CXX_COMPILER="${CXX}" \
-DLLVM_TARGET_ARCH=X86 \
-DLLVM_TARGETS_TO_BUILD=X86 \
-DIREE_ENABLE_ASSERTIONS=ON \
-DIREE_BUILD_SAMPLES=OFF \
-DIREE_BUILD_PYTHON_BINDINGS=ON \
Expand All @@ -89,9 +82,16 @@ CMAKE_ARGS="\
-DIREE_CMAKE_PLUGIN_PATHS=$PWD/../iree-amd-aie"

if [[ "$OSTYPE" != "darwin"* ]]; then
CMAKE_ARGS="$CMAKE_ARGS -DIREE_EXTERNAL_HAL_DRIVERS=xrt"
CMAKE_ARGS="$CMAKE_ARGS -DIREE_EXTERNAL_HAL_DRIVERS=xrt \
-DLLVM_TARGET_ARCH=X86 \
-DLLVM_TARGETS_TO_BUILD=X86 \
-DCMAKE_EXE_LINKER_FLAGS_INIT=\"-fuse-ld=lld\" \
-DCMAKE_SHARED_LINKER_FLAGS_INIT=\"-fuse-ld=lld\" \
-DCMAKE_MODULE_LINKER_FLAGS_INIT=\"-fuse-ld=lld\""
fi

echo "CMAKE_ARGS=$CMAKE_ARGS"

cmake $CMAKE_ARGS

echo "Building all"
Expand Down

0 comments on commit 7a2e399

Please sign in to comment.