mirror of https://github.com/exaloop/codon.git
Remove -static-libstdc++ compilation flag
parent
d035f1dc97
commit
b17d21513d
|
@ -48,10 +48,8 @@ include(${CMAKE_SOURCE_DIR}/cmake/deps.cmake)
|
|||
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
|
||||
if(APPLE)
|
||||
set(CMAKE_INSTALL_RPATH "@loader_path;@loader_path/../lib/codon")
|
||||
set(STATIC_LIBCPP "")
|
||||
else()
|
||||
set(CMAKE_INSTALL_RPATH "$ORIGIN:$ORIGIN/../lib/codon")
|
||||
set(STATIC_LIBCPP "-static-libstdc++")
|
||||
endif()
|
||||
|
||||
add_executable(peg2cpp codon/util/peg2cpp.cpp)
|
||||
|
@ -138,7 +136,7 @@ target_include_directories(codonrt PRIVATE ${backtrace_SOURCE_DIR}
|
|||
${highway_SOURCE_DIR}
|
||||
"${gc_SOURCE_DIR}/include"
|
||||
"${fast_float_SOURCE_DIR}/include" runtime)
|
||||
target_link_libraries(codonrt PRIVATE fmt omp backtrace ${STATIC_LIBCPP} LLVMSupport)
|
||||
target_link_libraries(codonrt PRIVATE fmt omp backtrace LLVMSupport)
|
||||
if(APPLE)
|
||||
target_link_libraries(
|
||||
codonrt
|
||||
|
@ -434,11 +432,7 @@ llvm_map_components_to_libnames(
|
|||
TransformUtils
|
||||
Vectorize
|
||||
Passes)
|
||||
if(APPLE)
|
||||
target_link_libraries(codonc PRIVATE ${LLVM_LIBS} fmt dl codonrt)
|
||||
else()
|
||||
target_link_libraries(codonc PRIVATE ${STATIC_LIBCPP} ${LLVM_LIBS} fmt dl codonrt)
|
||||
endif()
|
||||
target_link_libraries(codonc PRIVATE ${LLVM_LIBS} fmt dl codonrt)
|
||||
|
||||
# Gather headers
|
||||
add_custom_target(
|
||||
|
@ -482,7 +476,7 @@ add_dependencies(libs codonrt codonc)
|
|||
|
||||
# Codon command-line tool
|
||||
add_executable(codon codon/app/main.cpp)
|
||||
target_link_libraries(codon PUBLIC ${STATIC_LIBCPP} fmt codonc codon_jupyter Threads::Threads)
|
||||
target_link_libraries(codon PUBLIC fmt codonc codon_jupyter Threads::Threads)
|
||||
|
||||
# Codon test Download and unpack googletest at configure time
|
||||
include(FetchContent)
|
||||
|
|
Loading…
Reference in New Issue