From 327e29791e308b164dc9cb83180c87ac34b2accb Mon Sep 17 00:00:00 2001 From: "Enrico Fraccaroli (Galfurian)" Date: Thu, 30 Nov 2023 11:47:15 -0500 Subject: [PATCH] Use gcc@11 under MacOS --- libc/CMakeLists.txt | 3 +++ mentos/CMakeLists.txt | 3 +++ programs/CMakeLists.txt | 3 +++ programs/tests/CMakeLists.txt | 3 +++ 4 files changed, 12 insertions(+) diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt index 95f3b3e..a832529 100644 --- a/libc/CMakeLists.txt +++ b/libc/CMakeLists.txt @@ -71,6 +71,9 @@ elseif(CMAKE_BUILD_TYPE STREQUAL "Release") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3") endif(CMAKE_BUILD_TYPE STREQUAL "Debug") +SET(CMAKE_C_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") +SET(CMAKE_CXX_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") + # ============================================================================= # Add the library. add_library( diff --git a/mentos/CMakeLists.txt b/mentos/CMakeLists.txt index e43b51d..2d014ea 100644 --- a/mentos/CMakeLists.txt +++ b/mentos/CMakeLists.txt @@ -91,6 +91,9 @@ elseif(CMAKE_BUILD_TYPE STREQUAL "Release") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3") endif(CMAKE_BUILD_TYPE STREQUAL "Debug") +SET(CMAKE_C_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") +SET(CMAKE_CXX_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") + # ============================================================================= # SOURCES # ============================================================================= diff --git a/programs/CMakeLists.txt b/programs/CMakeLists.txt index 89daecf..384c03c 100644 --- a/programs/CMakeLists.txt +++ b/programs/CMakeLists.txt @@ -87,6 +87,9 @@ elseif(CMAKE_BUILD_TYPE STREQUAL "Release") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3") endif(CMAKE_BUILD_TYPE STREQUAL "Debug") +SET(CMAKE_C_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") +SET(CMAKE_CXX_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") + # ============================================================================= # BUILD # ============================================================================= diff --git a/programs/tests/CMakeLists.txt b/programs/tests/CMakeLists.txt index 6779e6b..9cd4dc0 100644 --- a/programs/tests/CMakeLists.txt +++ b/programs/tests/CMakeLists.txt @@ -97,6 +97,9 @@ elseif(CMAKE_BUILD_TYPE STREQUAL "Release") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3") endif(CMAKE_BUILD_TYPE STREQUAL "Debug") +SET(CMAKE_C_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") +SET(CMAKE_CXX_ARCHIVE_FINISH " -no_warning_for_no_symbols -c ") + # ============================================================================= # BUILD # =============================================================================