Skip to content

Commit 72cfb62

Browse files
committed
Clean up module import
- `import std.compat;` implies `import std;` so both aren't needed - Add some initial build setup instructions to the MSVC regression test script
1 parent b94899e commit 72cfb62

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

include/cpp2util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
// If C++23 'import std;' was requested but isn't available, fall back
3434
// to the 'include std' path
3535
#if defined(CPP2_IMPORT_STD) && defined(__cpp_lib_modules)
36-
import std;
3736
import std.compat;
3837
// If 'include std' was requested, include all standard headers.
3938
// This list tracks the current draft standard, so as of this

regression-tests/test-results/msvc-2022/run-tests-msvc-2022.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
REM This is intended to be run in the /test-results/msvc-2022 directory
22
REM in a VS2022 Command Prompt (which sets the path and other environment)
33
REM
4+
REM After installing VS2022, to finish setting up std modules in your environment, run:
5+
REM cl /std:c++latest /EHsc /nologo /W4 /MD /c "%VCToolsInstallDir%\modules\std.ixx"
6+
REM cl /std:c++latest /EHsc /nologo /W4 /MD /c "%VCToolsInstallDir%\modules\std.compat.ixx"
7+
REM More info: https://learn.microsoft.com/en-us/cpp/cpp/tutorial-import-stl-named-module?view=msvc-170
8+
REM
49
@echo off
510
SETLOCAL EnableDelayedExpansion
611
copy ..\*.cpp .

0 commit comments

Comments
 (0)