Skip to content

Commit

Permalink
Merge "SWDEV-466543 - Set BUILD_SHARED_LIBS flag in build_openmp scri…
Browse files Browse the repository at this point in the history
…pt (#960)" into release/rocm-rel-6.2
  • Loading branch information
amd-aakash authored and Gerrit Code Review committed Jul 9, 2024
2 parents 3d8425c + 35f697b commit 825bfac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/build_openmp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ COMMON_CMAKE_OPTS="$AOMP_SET_NINJA_GEN -DOPENMP_ENABLE_LIBOMPTARGET=1
-DLLVM_DIR=$LLVM_DIR"

if [ "$AOMP_STANDALONE_BUILD" == 0 ]; then
# For static package builds, set BUILD_SHARED_LIBS to OFF
if [ "$STATIC_PKG_DEPS" == "ON" ]; then
COMMON_CMAKE_OPTS="$COMMON_CMAKE_OPTS -DBUILD_SHARED_LIBS=OFF"
fi
COMMON_CMAKE_OPTS="$COMMON_CMAKE_OPTS
-DLLVM_MAIN_INCLUDE_DIR=$LLVM_PROJECT_ROOT/llvm/include
-DLIBOMPTARGET_LLVM_INCLUDE_DIRS=$LLVM_PROJECT_ROOT/llvm/include
Expand Down

0 comments on commit 825bfac

Please sign in to comment.