From 4f851d84a2650c328235a87f3b62d4c26641a44f Mon Sep 17 00:00:00 2001 From: PENGUINLIONG Date: Tue, 13 Sep 2022 09:25:16 +0800 Subject: [PATCH] [aot] Fixed compilation on Linux distros (#6043) Follow up of #5994. Clang follows a strict separation between C++ headers so fundamental utilities like `std::exchange` is not implicitly included in other `std` headers. --- c_api/include/taichi/cpp/taichi.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/c_api/include/taichi/cpp/taichi.hpp b/c_api/include/taichi/cpp/taichi.hpp index 1dd43f050cd6f..8e594753d177f 100644 --- a/c_api/include/taichi/cpp/taichi.hpp +++ b/c_api/include/taichi/cpp/taichi.hpp @@ -3,6 +3,7 @@ #include #include #include +#include #include "taichi/taichi.h" namespace ti {