Skip to content

Commit

Permalink
Merge pull request #7253 from dnakamura/verbose_flags
Browse files Browse the repository at this point in the history
CMake: Fix platform specific flags in the verbose component
  • Loading branch information
pshipton committed Sep 26, 2019
2 parents c53eece + 182da7c commit ceecaaa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions runtime/verbose/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ add_library(j9vrb SHARED
${CMAKE_CURRENT_BINARY_DIR}/ut_j9vrb.c
)

#TODO this is platform specific
set_property(SOURCE ../compiler/runtime/MethodMetaData.c APPEND_STRING PROPERTY COMPILE_FLAGS " -std=gnu89")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
set_property(SOURCE ../compiler/runtime/MethodMetaData.c APPEND_STRING PROPERTY COMPILE_FLAGS " -std=gnu89")
endif()

target_include_directories(j9vrb
PRIVATE
${CMAKE_CURRENT_BINARY_DIR}
Expand Down

0 comments on commit ceecaaa

Please sign in to comment.