diff options
author | Oscar Fuentes <ofv@wanadoo.es> | 2009-04-03 12:16:32 +0000 |
---|---|---|
committer | Oscar Fuentes <ofv@wanadoo.es> | 2009-04-03 12:16:32 +0000 |
commit | 52a2952e865404357c00b68455bc775f7636009c (patch) | |
tree | 3eab7e9c953c1ae64b465ee4036ab0d32e6d254f /tools/llvm-config | |
parent | ba8e167a77bfdfceed5c546f6786c6cfe3a8f62d (diff) | |
download | external_llvm-52a2952e865404357c00b68455bc775f7636009c.zip external_llvm-52a2952e865404357c00b68455bc775f7636009c.tar.gz external_llvm-52a2952e865404357c00b68455bc775f7636009c.tar.bz2 |
CMake: tools/llvm-config/CMakeLists.txt: Use ! instead of comma as
separator in sed scripts. Resolves Bug 3881.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-config')
-rw-r--r-- | tools/llvm-config/CMakeLists.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/llvm-config/CMakeLists.txt b/tools/llvm-config/CMakeLists.txt index 94bce1a..117589d 100644 --- a/tools/llvm-config/CMakeLists.txt +++ b/tools/llvm-config/CMakeLists.txt @@ -83,13 +83,13 @@ add_custom_command(OUTPUT ${FINAL_LIBDEPS} COMMENT "Checking for cyclic dependencies between LLVM libraries.") add_custom_command(OUTPUT ${LLVM_CONFIG} - COMMAND echo 's,@LLVM_CPPFLAGS@,${CMAKE_CPP_FLAGS},' > temp.sed - COMMAND echo 's,@LLVM_CFLAGS@,${CMAKE_C_FLAGS},' >> temp.sed - COMMAND echo 's,@LLVM_CXXFLAGS@,${CMAKE_CXX_FLAGS},' >> temp.sed - # TODO: Use general flags for linking, not just for shared libs: - COMMAND echo 's,@LLVM_LDFLAGS@,${CMAKE_SHARED_LINKER_FLAGS},' >> temp.sed - COMMAND echo 's,@LIBS@,,' >> temp.sed # TODO: System libs - COMMAND echo 's,@LLVM_BUILDMODE@,${CMAKE_BUILD_TYPE},' >> temp.sed + COMMAND echo 's!@LLVM_CPPFLAGS@!${CMAKE_CPP_FLAGS}!' > temp.sed + COMMAND echo 's!@LLVM_CFLAGS@!${CMAKE_C_FLAGS}!' >> temp.sed + COMMAND echo 's!@LLVM_CXXFLAGS@!${CMAKE_CXX_FLAGS}!' >> temp.sed + # TODO: Use general flags for linking! not just for shared libs: + COMMAND echo 's!@LLVM_LDFLAGS@!${CMAKE_SHARED_LINKER_FLAGS}!' >> temp.sed + COMMAND echo 's!@LIBS@!!' >> temp.sed # TODO: System libs + COMMAND echo 's!@LLVM_BUILDMODE@!${CMAKE_BUILD_TYPE}!' >> temp.sed COMMAND sed -f temp.sed < ${LLVM_CONFIG_IN} > ${LLVM_CONFIG} COMMAND ${CMAKE_COMMAND} -E remove -f temp.sed COMMAND cat ${FINAL_LIBDEPS} >> ${LLVM_CONFIG} |