This commit is contained in:
郑树新 2019-09-24 15:16:13 +08:00
commit e6bdc54769
2 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@ if (CMAKE_SYSTEM_NAME MATCHES "Android")
add_definitions("-Wno-invalid-source-encoding")
add_definitions("-fvisibility=hidden")
add_definitions("-fvisibility-inlines-hidden")
add_definitions("-Wno-unused-command-line-argument")
string(APPEND CMAKE_C_FLAGS " -Qunused-arguments")
add_definitions("-Wno-unused-command-line-argument")
string(APPEND CMAKE_C_FLAGS " -Qunused-arguments")
set(UNIX_OS true)
elseif (CMAKE_SYSTEM_NAME MATCHES "Linux")
add_definitions("-O2")

View File

@ -15,8 +15,8 @@ if(CMAKE_SYSTEM_NAME MATCHES "Android")
add_definitions("-Wno-invalid-source-encoding")
add_definitions("-fvisibility=hidden")
add_definitions("-fvisibility-inlines-hidden")
string(APPEND CMAKE_CXX_FLAGS " -Qunused-arguments")
set(UNIX_OS true)
string(APPEND CMAKE_CXX_FLAGS " -Qunused-arguments")
set(UNIX_OS true)
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
add_definitions("-Wno-invalid-source-encoding")
add_definitions("-O2")