Skip to content

Commit

Permalink
Moving -fvar-tracking-assignments-toggle to be on for PYB11 builds on…
Browse files Browse the repository at this point in the history
… all GCC builds to avoid symbols overflows during compilation
  • Loading branch information
jmikeowen committed Sep 13, 2024
1 parent 0916e18 commit 602be57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Compilers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
-Wno-delete-abstract-non-virtual-dtor)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
list(APPEND SPHERAL_PYB11_TARGET_FLAGS
-Wno-pedantic)
-Wno-pedantic
-fvar-tracking-assignments-toggle)
endif()

#-------------------------------------------------------------------------------
Expand All @@ -95,7 +96,6 @@ if (DEFINED ENV{SYS_TYPE})
add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:${CXX_BLUEOS_FLAGS}>")
message("-- Adding ${CXX_BLUEOS_FLAGS} to C++ compile flags")
endif()
list(APPEND SPHERAL_PYB11_TARGET_FLAGS "-fvar-tracking-assignments-toggle")
endif()
endif()
#set(CXX_STRIP_FLAGS "-fdata-sections;-ffunction-sections")
Expand Down

0 comments on commit 602be57

Please sign in to comment.