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.
permissive-
1 parent 4297414 commit d2a03b2Copy full SHA for d2a03b2
CMakeLists.txt
@@ -165,6 +165,11 @@ if(MSVC)
165
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
166
add_compile_options(/bigobj)
167
168
+ # Use standard-conforming two-phase name resolution for templates.
169
+ # This minimizes the differences between g++/clang builds on Linux,
170
+ # and MSVC builds on Windows.
171
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive-")
172
+
173
# MSVC already errors on undefined symbols, no additional flag needed.
174
set(TVM_NO_UNDEFINED_SYMBOLS "")
175
0 commit comments