[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
This commit is contained in:
NAKAMURA Takumi 2015-08-19 22:55:16 +00:00
parent 3b7c3d3fe9
commit 3c8ad80334

View File

@ -1,5 +1,9 @@
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-unused-private-field")
add_kaleidoscope_chapter(Kaleidoscope-Ch2
toy.cpp
)
if(LLVM_COMPILER_IS_GCC_COMPATIBLE)
target_compile_options(Kaleidoscope-Ch2 PRIVATE
-Wno-unused-private-field
)
endif()