This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch feature/update_debug_optimalization_flag
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to
refs/heads/feature/update_debug_optimalization_flag by this push:
new 1f8d035e Force a -O0 flag for libdfi
1f8d035e is described below
commit 1f8d035e36b17dd3c16e7f8ef8a76e408dd24929
Author: Pepijn Noltes <[email protected]>
AuthorDate: Sun Dec 11 19:05:39 2022 +0100
Force a -O0 flag for libdfi
---
libs/dfi/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/dfi/CMakeLists.txt b/libs/dfi/CMakeLists.txt
index 69363420..07ece7dc 100644
--- a/libs/dfi/CMakeLists.txt
+++ b/libs/dfi/CMakeLists.txt
@@ -39,7 +39,7 @@ target_include_directories(dfi PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
$<INSTALL_INTERFACE:include/celix/dfi>
)
-
+target_compile_options(dfi PRIVATE -O0) #Remove optimalization to ensure
libdfi / ffi works
target_link_libraries(dfi PRIVATE libffi::libffi)
target_link_libraries(dfi PUBLIC jansson::jansson)
target_link_libraries(dfi PRIVATE Celix::utils)