mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
CLang gives an error on -O4
clang: error: -O4 is equivalent to -O3
This commit is contained in:
parent
3476e0ce10
commit
1632c9a894
1 changed files with 4 additions and 8 deletions
|
@ -361,9 +361,9 @@ endif(UNIX)
|
||||||
|
|
||||||
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
set( CMAKE_C_FLAGS "-Wall -Werror -O4 -fvisibility=hidden ${CMAKE_C_FLAGS}" )
|
set( CMAKE_C_FLAGS "-Wall -Werror -O3 -fvisibility=hidden ${CMAKE_C_FLAGS}" )
|
||||||
else(UNIX)
|
else(UNIX)
|
||||||
set( CMAKE_C_FLAGS "-Wall -O4 -fvisibility=hidden ${CMAKE_C_FLAGS}" )
|
set( CMAKE_C_FLAGS "-Wall -O3 -fvisibility=hidden ${CMAKE_C_FLAGS}" )
|
||||||
endif(UNIX)
|
endif(UNIX)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
@ -685,9 +685,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
|
||||||
|
|
||||||
add_custom_command(TARGET test-server
|
add_custom_command(TARGET test-server
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND "${CMAKE_COMMAND}" -E make_directory "$<TARGET_FILE_DIR:test-server>/../share/libwebsockets-test-server"
|
COMMAND "${CMAKE_COMMAND}" -E make_directory "$<TARGET_FILE_DIR:test-server>/../share/libwebsockets-test-server")
|
||||||
COMMENT "Creating test-server $<TARGET_FILE_DIR:test-server> share directory"
|
|
||||||
VERBATIM)
|
|
||||||
|
|
||||||
# Copy the file needed to run the server so that the test apps can
|
# Copy the file needed to run the server so that the test apps can
|
||||||
# reach them from their default output location
|
# reach them from their default output location
|
||||||
|
@ -695,9 +693,7 @@ if (NOT LWS_WITHOUT_TESTAPPS)
|
||||||
if (EXISTS ${TEST_FILE})
|
if (EXISTS ${TEST_FILE})
|
||||||
add_custom_command(TARGET test-server
|
add_custom_command(TARGET test-server
|
||||||
POST_BUILD
|
POST_BUILD
|
||||||
COMMAND "${CMAKE_COMMAND}" -E copy "${TEST_FILE}" "$<TARGET_FILE_DIR:test-server>/../share/libwebsockets-test-server"
|
COMMAND "${CMAKE_COMMAND}" -E copy "${TEST_FILE}" "$<TARGET_FILE_DIR:test-server>/../share/libwebsockets-test-server" VERBATIM)
|
||||||
COMMENT "Copying test-server files"
|
|
||||||
VERBATIM)
|
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
endif(NOT LWS_WITHOUT_SERVER)
|
endif(NOT LWS_WITHOUT_SERVER)
|
||||||
|
|
Loading…
Add table
Reference in a new issue