From 64c9669306f9cee72a37e3a414f40372a0994d23 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 31 Oct 2022 08:32:38 -0700 Subject: Make cpp-host prelude include scalar intrinsics. (#2478) * Make cpp-host prelude include scalar intrinsics. * Fix. Co-authored-by: Yong He --- prelude/slang-cpp-host-prelude.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/prelude/slang-cpp-host-prelude.h b/prelude/slang-cpp-host-prelude.h index 3aec0dd07..0a026471c 100644 --- a/prelude/slang-cpp-host-prelude.h +++ b/prelude/slang-cpp-host-prelude.h @@ -11,6 +11,26 @@ #include "../slang-com-ptr.h" #include "slang-cpp-types.h" +#ifdef SLANG_LLVM +#include "slang-llvm.h" +#else // SLANG_LLVM +# if SLANG_GCC_FAMILY && __GNUC__ < 6 +# include +# define SLANG_PRELUDE_STD std:: +# else +# include +# define SLANG_PRELUDE_STD +# endif + +# include +# include +# include +# include +#endif // SLANG_LLVM + + +#include "slang-cpp-scalar-intrinsics.h" + using namespace Slang; template -- cgit v1.2.3