Skip to content

Commit

Permalink
[CI] Fixed windows build & test (#2434)
Browse files Browse the repository at this point in the history
* [CI] Fixed windows build & test

* add comments

* add comments

* Auto Format

Co-authored-by: Taichi Gardener <taichigardener@gmail.com>
  • Loading branch information
Leonz5288 and taichi-gardener authored Jun 16, 2021
1 parent 2726acf commit 4c86e6e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions taichi/runtime/llvm/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
// The generated bitcode will likely get inlined for performance.

#if !defined(TI_INCLUDED) || !defined(_WIN32)
// The latest MSVC(Visual Studio 2019 version 16.10.1, MSVC 14.29.30037)
// uses llvm-11 as requirements. Check this link for details:
// https://github.com/microsoft/STL/blob/1866b848f0175c3361a916680a4318e7f0cc5482/stl/inc/yvals_core.h#L550-L561.
// However, we use llvm-10 for now and building will fail due to clang version
// mismatch. Therefore, we workaround this problem by define such flag to skip
// the version check.
// NOTE(#2428)
#if defined(_WIN32) || defined(_WIN64)
#define _ALLOW_COMPILER_AND_STL_VERSION_MISMATCH
#endif

#include <atomic>
#include <cstdint>
Expand Down

0 comments on commit 4c86e6e

Please sign in to comment.