[compiler-rt] r367572 - compiler-rt: Call a generated c++ file in hwasan .cpp instead of .cc
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 07:48:16 PDT 2019
Author: nico
Date: Thu Aug 1 07:48:16 2019
New Revision: 367572
URL: http://llvm.org/viewvc/llvm-project?rev=367572&view=rev
Log:
compiler-rt: Call a generated c++ file in hwasan .cpp instead of .cc
Modified:
compiler-rt/trunk/lib/hwasan/CMakeLists.txt
Modified: compiler-rt/trunk/lib/hwasan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/hwasan/CMakeLists.txt?rev=367572&r1=367571&r2=367572&view=diff
==============================================================================
--- compiler-rt/trunk/lib/hwasan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/hwasan/CMakeLists.txt Thu Aug 1 07:48:16 2019
@@ -95,10 +95,10 @@ add_compiler_rt_object_libraries(RTHwasa
DEFS ${HWASAN_DEFINITIONS}
DEPS ${HWASAN_DEPS})
-file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cc "")
+file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp "")
add_compiler_rt_object_libraries(RTHwasan_dynamic_version_script_dummy
ARCHS ${HWASAN_SUPPORTED_ARCH}
- SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dummy.cc
+ SOURCES ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp
CFLAGS ${HWASAN_DYNAMIC_CFLAGS}
DEFS ${HWASAN_DEFINITIONS}
DEPS ${HWASAN_DEPS})
@@ -131,7 +131,7 @@ foreach(arch ${HWASAN_SUPPORTED_ARCH})
set(VERSION_SCRIPT_FLAG
-Wl,--version-script,${CMAKE_CURRENT_BINARY_DIR}/clang_rt.hwasan-dynamic-${arch}.vers)
set_property(SOURCE
- ${CMAKE_CURRENT_BINARY_DIR}/dummy.cc
+ ${CMAKE_CURRENT_BINARY_DIR}/dummy.cpp
APPEND PROPERTY
OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/clang_rt.hwasan-dynamic-${arch}.vers)
else()
More information about the llvm-commits
mailing list