dev-scheme/sagittarius: fix cxxflags and tests

Closes: https://bugs.gentoo.org/930963
Closes: https://bugs.gentoo.org/930964
Signed-off-by: Daichi Yamamoto <dev@dyama.net>
This commit is contained in:
Daichi Yamamoto
2024-05-01 01:31:39 +09:00
parent 62f839a72a
commit 9edeb03c86
2 changed files with 25 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
--- a/cmake/FixupCompilerFlags.cmake
+++ b/cmake/FixupCompilerFlags.cmake
@@ -45,18 +45,6 @@
SET(CMAKE_CXX_FLAGS "-Wall ${CMAKE_CXX_FLAGS}")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wshorten-64-to-32")
- # for GCC or Clang, we want both maximum performance and debug info.
- IF (CMAKE_BUILD_TYPE STREQUAL Debug)
- SET(CMAKE_C_FLAGS_DEBUG "-O3 ${CMAKE_C_FLAGS_DEBUG}")
- SET(CMAKE_CXX_FLAGS_DEBUG "-O3 ${CMAKE_CXX_FLAGS_DEBUG}")
- ELSEIF(CMAKE_BUILD_TYPE STREQUAL Release)
- SET(CMAKE_C_FLAGS_RELEASE "-g ${CMAKE_C_FLAGS_RELEASE}")
- SET(CMAKE_CXX_FLAGS_RELEASE "-g ${CMAKE_CXX_FLAGS_RELEASE}")
- ELSE()
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O3")
- SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O3")
- ENDIF()
-
# for some reason static library doesn't have this
# on x86_64 and is required.
# Solaris GCC (32 bit) doesn't have this either. so