mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-19 00:14:20 +00:00
[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:
parent
3b7c3d3fe9
commit
3c8ad80334
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user