We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89bf895 commit f7c508cCopy full SHA for f7c508c
clang/lib/CIR/CMakeLists.txt
@@ -1,12 +1,12 @@
1
include_directories(${LLVM_MAIN_SRC_DIR}/../mlir/include)
2
include_directories(${CMAKE_BINARY_DIR}/tools/mlir/include)
3
4
-# Report use of deprecated APIs as errors
5
-if (MSVC)
6
- add_compile_options("/we4996")
7
-else()
+# Report use of deprecated APIs as errors.
+# TODO: Consider adding `/we4996` for MSVC when upstream MLIR resolves
+# https://github.com/llvm/llvm-project/issues/65255.
+if (NOT MSVC)
8
add_compile_options("-Werror=deprecated-declarations")
9
-endif(MSVC)
+endif()
10
11
add_subdirectory(Dialect)
12
add_subdirectory(CodeGen)
0 commit comments