Skip to content

Commit

Permalink
druntime: Enable DRT_* environment variables support by default
Browse files Browse the repository at this point in the history
In order to trivially switch between GCs.
  • Loading branch information
kinke committed Dec 5, 2024
1 parent 0be77e5 commit 175011b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/actions/6-integration-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ runs:
installed/bin/ldc2 hello.d -link-defaultlib-shared
./hello
if [[ '${{ runner.os }}' == Linux ]]; then
DRT_GCOPT="gc:sdc" ./hello
installed/bin/ldc2 hello.d -m32 -link-defaultlib-shared
./hello
fi
Expand Down
2 changes: 1 addition & 1 deletion runtime/druntime/src/rt/config.d
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ version (LDC) // use @weak

extern(C) __gshared @weak
{
pragma(mangle, "rt_envvars_enabled") bool _rt_envvars_enabled = false;
pragma(mangle, "rt_envvars_enabled") bool _rt_envvars_enabled = true; // Symmetry-specific
pragma(mangle, "rt_cmdline_enabled") bool _rt_cmdline_enabled = true;
pragma(mangle, "rt_options") string[] _rt_options = [];
}
Expand Down

0 comments on commit 175011b

Please sign in to comment.