We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dad9d4 commit bf14685Copy full SHA for bf14685
mlir/CMakeLists.txt
@@ -12,7 +12,8 @@ include(AddMLIR)
12
13
# Forbid implicit function declaration: this may lead to subtle bugs and we
14
# don't have a reason to support this.
15
-add_flag_if_supported("-Werror-implicit-function-declaration" WERROR_IMPLICIT_FUNCTION_DECLARATION)
+check_c_compiler_flag("-Werror=implicit-function-declaration" C_SUPPORTS_WERROR_IMPLICIT_FUNCTION_DECLARATION)
16
+append_if(C_SUPPORTS_WERROR_IMPLICIT_FUNCTION_DECLARATION "-Werror=implicit-function-declaration" CMAKE_C_FLAGS)
17
18
# Installing the headers and docs needs to depend on generating any public
19
# tablegen'd targets.
0 commit comments