File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,6 +105,20 @@ if %ERRORLEVEL% neq 0 (
105105 exit %ERRORLEVEL%
106106)
107107
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+
108122if not exist %cppfront% (
109123 pushd .cache\repos\cppfront\source
110124 echo INFO: compiling cppfront...
@@ -125,6 +139,7 @@ cl /nologo "%root_dir%.cache/cpp2/source/src/main.cpp" ^
125139 /reference " %modules_dir% \std.ifc" " %modules_dir% \std.obj" ^
126140 /reference " %modules_dir% \std.compat.ifc" " %modules_dir% \std.compat.obj" ^
127141 /reference " %modules_dir% \dylib.ifc" " %modules_dir% \dylib.obj" ^
142+ /reference " %modules_dir% \xxh3.ifc" " %modules_dir% \xxh3.obj" ^
128143 /reference " %modules_dir% \cpp2b.ifc" " %modules_dir% \cpp2b.obj" ^
129144 /std:c++latest /W4 /MDd /EHsc ^
130145 /DEBUG:FULL /Zi /FC ^
Original file line number Diff line number Diff line change @@ -39,15 +39,13 @@ Copyright (C) 2012-2020 Yann Collet
3939/*
4040Modified by Ezekiel Warren
4141- removed consteval and _const suffix
42+ - using c++20 imports
4243*/
4344
4445module ;
4546
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;
5149
5250export module xxh3;
5351
You can’t perform that action at this time.
0 commit comments