Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 909506
Collapse All | Expand All

(-)file_not_specified_in_diff (-20 / +1 lines)
Line  Link Here
0
-- a/CMakeLists.txt
0
++ b/CMakeLists.txt
Lines 34-58 IF (MSVC) Link Here
34
    INCLUDE_DIRECTORIES(wincompat)
34
    INCLUDE_DIRECTORIES(wincompat)
35
ENDIF()
35
ENDIF()
36
36
37
IF (CMAKE_C_COMPILER_ID STREQUAL GNU
38
	OR CMAKE_C_COMPILER_ID STREQUAL Clang)
39
	SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -Wall -Wextra -Wno-unused-parameter")
40
	SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -fno-omit-frame-pointer")
41
        INCLUDE(CheckCCompilerFlag)
42
        CHECK_C_COMPILER_FLAG(-Wno-implicit-fallthrough HAS_NO_IMPLICIT_FALLTHROUGH)
43
        IF (HAS_NO_IMPLICIT_FALLTHROUGH)
44
            SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -Wno-implicit-fallthrough")
45
        ENDIF()
46
        IF (PROFILE EQUAL 1)
47
            SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -g -pg")
48
        ENDIF()
49
        IF (CMAKE_BUILD_TYPE STREQUAL Release)
50
            SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -g0 -O3")
51
        ELSE()
52
            SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -g3 -O0 -fsanitize=address")
53
        ENDIF()
54
ENDIF()
55
56
IF (NOT CMAKE_BUILD_TYPE STREQUAL Release)
37
IF (NOT CMAKE_BUILD_TYPE STREQUAL Release)
57
    SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -DLS_HPACK_EMIT_TEST_CODE=1")
38
    SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -DLS_HPACK_EMIT_TEST_CODE=1")
58
ENDIF()
39
ENDIF()

Return to bug 909506