Skip to content

Commit

Permalink
[SDK] Disable the unknown-pragma for GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Oct 19, 2024
1 parent 6fba4b1 commit f233eb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/cmake/gcc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ add_compile_options(-mlong-double-64)
add_compile_options("$<$<NOT:$<COMPILE_LANGUAGE:CXX>>:-nostdinc>")

if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
add_compile_options("-Wno-unknown-pragmas")
add_compile_options(-fno-aggressive-loop-optimizations)
if (DBG)
add_compile_options("$<$<COMPILE_LANGUAGE:C>:-Wold-style-declaration>")
Expand Down

0 comments on commit f233eb8

Please sign in to comment.