Skip to content

Commit

Permalink
Link C++ library statically
Browse files Browse the repository at this point in the history
  • Loading branch information
rofirrim committed Dec 10, 2020
1 parent ceb14c3 commit cdefe9b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions utils/OmpSs/setup-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,18 @@ then
CMAKE_INVOCATION_EXTRA_FLAGS+=("-DCOMPILER_RT_SANITIZERS_TO_BUILD=asan")
fi

################################################################################
# How to link the C++ library
################################################################################

if [ "${CXX_LIBRARY_SHARED}" = 1 ];
then
# This is the default.
:
else
CMAKE_INVOCATION_EXTRA_FLAGS+=("-DLLVM_STATIC_LINK_CXX_STDLIB=ON")
fi

################################################################################
# cmake
################################################################################
Expand Down

0 comments on commit cdefe9b

Please sign in to comment.