File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,20 @@ if %ERRORLEVEL% neq 0 (
105
105
exit %ERRORLEVEL%
106
106
)
107
107
108
+ echo INFO: compiling xxh3 module...
109
+ pushd %modules_dir%
110
+ cl /nologo ^
111
+ /std:c++latest /W4 /MDd /EHsc ^
112
+ /reference " %modules_dir% \std.ifc" ^
113
+ /reference " %modules_dir% \std.compat.ifc" ^
114
+ /c /interface /TP " %root_dir% src\xxh3.cppm" > NUL
115
+ popd
116
+
117
+ if %ERRORLEVEL% neq 0 (
118
+ echo ERROR: failed to compile xxh3 module
119
+ exit %ERRORLEVEL%
120
+ )
121
+
108
122
if not exist %cppfront% (
109
123
pushd .cache\repos\cppfront\source
110
124
echo INFO: compiling cppfront...
@@ -125,6 +139,7 @@ cl /nologo "%root_dir%.cache/cpp2/source/src/main.cpp" ^
125
139
/reference " %modules_dir% \std.ifc" " %modules_dir% \std.obj" ^
126
140
/reference " %modules_dir% \std.compat.ifc" " %modules_dir% \std.compat.obj" ^
127
141
/reference " %modules_dir% \dylib.ifc" " %modules_dir% \dylib.obj" ^
142
+ /reference " %modules_dir% \xxh3.ifc" " %modules_dir% \xxh3.obj" ^
128
143
/reference " %modules_dir% \cpp2b.ifc" " %modules_dir% \cpp2b.obj" ^
129
144
/std:c++latest /W4 /MDd /EHsc ^
130
145
/DEBUG:FULL /Zi /FC ^
Original file line number Diff line number Diff line change @@ -39,15 +39,13 @@ Copyright (C) 2012-2020 Yann Collet
39
39
/*
40
40
Modified by Ezekiel Warren
41
41
- removed consteval and _const suffix
42
+ - using c++20 imports
42
43
*/
43
44
44
45
module ;
45
46
46
- #include < cstddef>
47
- #include < cstdint>
48
- #include < iterator> // for std::data, std::size
49
- #include < type_traits>
50
- #include < utility>
47
+ import std;
48
+ import std.compat;
51
49
52
50
export module xxh3;
53
51
You can’t perform that action at this time.
0 commit comments