llvm.org GIT mirror llvm / 3c8ad80
[CMake] Kaleidoscope-Ch2: Don't pass -Wno-unused-private-field unconditionally. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245516 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 4 years ago
1 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
None set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-private-field")
1
2 add_kaleidoscope_chapter(Kaleidoscope-Ch2
31 toy.cpp
42 )
3
4 if(LLVM_COMPILER_IS_GCC_COMPATIBLE)
5 target_compile_options(Kaleidoscope-Ch2 PRIVATE
6 -Wno-unused-private-field
7 )
8 endif()