Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CMake][MSVC] Disable permissive mode for MSVC builds (#16343)
[CMake][MSVC] Use /permissive- flag for MSVC builds The C++ standard requires two-phase name resolution for templates. By default, MSVC uses a non-standard name resolution, in which all names are looked up when a template is instantiated. This has caused MSVC-specific compilation errors, ([example](https://github.com/apache/tvm/actions/runs/7400684492/job/20134841480?pr=16183)), which are quite difficult to debug. This commit updates adds the `/permissive-` flag when building TVM with MSVC, disabling the non-standard name resolution.
- Loading branch information