Skip to content

Commit 21fb5a1

Browse files
committed
Attempt to fix build fo Windows by adding module core.system.opt
1 parent 7075d9f commit 21fb5a1

5 files changed

Lines changed: 16 additions & 10 deletions

File tree

druntime/mak/COPY

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ COPY=\
2323
$(IMPDIR)\core\memory.d \
2424
$(IMPDIR)\core\runtime.d \
2525
$(IMPDIR)\core\simd.d \
26-
$(IMPDIR)\core\system.d \
26+
$(IMPDIR)\core\system\opt.d \
27+
$(IMPDIR)\core\system\package.d \
2728
$(IMPDIR)\core\time.d \
2829
$(IMPDIR)\core\vararg.d \
2930
$(IMPDIR)\core\volatile.d \

druntime/mak/SRCS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ SRCS=\
1717
src\core\memory.d \
1818
src\core\runtime.d \
1919
src\core\simd.d \
20-
src\core\system.d \
20+
src\core\system\opt.d \
21+
src\core\system\package.d \
2122
src\core\time.d \
2223
src\core\vararg.d \
2324
src\core\volatile.d \

druntime/src/core/gc/config.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module core.gc.config;
99

1010
import core.internal.parseoptions;
1111
import core.stdc.stdio : printf;
12-
import core.system : Opt;
12+
import core.system.opt : Opt;
1313

1414
alias Config = Opt.GcConfig;
1515

druntime/src/core/system/opt.d

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
///
2+
module core.system.opt;
3+
4+
package(core):
5+
6+
struct Opt
7+
{
8+
import core.gc.config: ConfigT;
9+
10+
alias GcConfig = ConfigT!();
11+
}
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,3 @@ struct Mem
1717

1818
alias allocateOnStack = alloca;
1919
}
20-
21-
struct Opt
22-
{
23-
import core.gc.config: ConfigT;
24-
25-
alias GcConfig = ConfigT!();
26-
}

0 commit comments

Comments
 (0)