Skip to content

Commit

Permalink
add compiler flags.
Browse files Browse the repository at this point in the history
  • Loading branch information
aikiriao committed Jul 1, 2024
1 parent 4bcbf8e commit 672f72c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/srla_codec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ endif()
# コンパイルオプション
if(MSVC)
target_compile_options(${APP_NAME} PRIVATE /W4)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Oi /Ot /Oy /GL")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG")
else()
target_compile_options(${APP_NAME} PRIVATE -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=2 -Wconversion -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition)
set(CMAKE_C_FLAGS_DEBUG "-O0 -g3 -DDEBUG")
Expand Down
2 changes: 2 additions & 0 deletions tools/srla_player/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ endif()
# コンパイルオプション
if(MSVC)
target_compile_options(${APP_NAME} PRIVATE /W4)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /Oi /Ot /Oy /GL")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /LTCG")
else()
target_compile_options(${APP_NAME} PRIVATE -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=2 -Wconversion -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition)
set(CMAKE_C_FLAGS_DEBUG "-O0 -g3 -DDEBUG")
Expand Down

0 comments on commit 672f72c

Please sign in to comment.