This is an automated email from the ASF dual-hosted git repository.
pengzheng pushed a commit to branch feature/error_injector
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to refs/heads/feature/error_injector by this
push:
new 2fefa7c9 Disable unsupported compiler option for macOS.
2fefa7c9 is described below
commit 2fefa7c95a5c75278e59a7dcecdd4ab8a5263f4e
Author: PengZheng <[email protected]>
AuthorDate: Fri Jan 20 09:27:06 2023 +0800
Disable unsupported compiler option for macOS.
---
misc/error_injector/CMakeLists.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/misc/error_injector/CMakeLists.txt
b/misc/error_injector/CMakeLists.txt
index 0da41a89..ca4647fb 100644
--- a/misc/error_injector/CMakeLists.txt
+++ b/misc/error_injector/CMakeLists.txt
@@ -20,7 +20,9 @@ target_include_directories(error_injector INTERFACE
${CMAKE_CURRENT_LIST_DIR})
# get caller address of the target function, into which errors are injected
target_link_libraries(error_injector INTERFACE dl)
target_link_options(error_injector INTERFACE -rdynamic)
-target_compile_options(error_injector INTERFACE -Wno-frame-address)
+if(NOT APPLE)
+ target_compile_options(error_injector INTERFACE -Wno-frame-address)
+endif()
add_subdirectory(malloc)
add_subdirectory(celix_properties)