File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,19 @@ 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
+
116
+ if %ERRORLEVEL% neq 0 (
117
+ echo ERROR: failed to compile xxh3 module
118
+ exit %ERRORLEVEL%
119
+ )
120
+
108
121
echo INFO: compiling nlohmann.json module...
109
122
pushd %modules_dir%
110
123
cl /nologo ^
@@ -140,6 +153,7 @@ cl /nologo "%root_dir%.cache/cpp2/source/src/main.cpp" ^
140
153
/reference " %modules_dir% \std.compat.ifc" " %modules_dir% \std.compat.obj" ^
141
154
/reference " %modules_dir% \dylib.ifc" " %modules_dir% \dylib.obj" ^
142
155
/reference " %modules_dir% \nlohmann.json.ifc" " %modules_dir% \nlohmann.json.obj" ^
156
+ /reference " %modules_dir% \xxh3.ifc" " %modules_dir% \xxh3.obj" ^
143
157
/reference " %modules_dir% \cpp2b.ifc" " %modules_dir% \cpp2b.obj" ^
144
158
/std:c++latest /W4 /MDd /EHsc ^
145
159
/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