Skip to content

Commit

Permalink
removed -lsupc flag, microsoft#678
Browse files Browse the repository at this point in the history
  • Loading branch information
sytelus committed Dec 13, 2017
1 parent 8731167 commit 6c66121
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/cmake-modules/CommonSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ macro(CommonSetup)
set(CMAKE_CXX_FLAGS "\
-nostdinc++ -isystem ${LIBCXX_INC_PATH} \
-D__CLANG__ ${CMAKE_CXX_FLAGS}")

# removed -lsupc++ from below (Git issue # 678)
set(CMAKE_EXE_LINKER_FLAGS "\
${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++ -lc++abi -lm -lc -lsupc++ \
${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++ -lc++abi -lm -lc \
-L ${LIBCXX_LIB_PATH} -rpath ${LIBCXX_LIB_PATH}")

#do not use experimental as it might potentially cause ABI issues
Expand Down

0 comments on commit 6c66121

Please sign in to comment.