Skip to content

Commit

Permalink
standardize on the msft universal crt
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdruppe committed Sep 24, 2024
1 parent 00e1274 commit 621c038
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/actions/5-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ runs:
cp c:/program\ files/llvm/bin/lld-link.exe install/bin
echo -e '[Environment64]\nDFLAGS=-I%@P%/../import -L-L%@P%/../lib -L--export-dynamic -fPIC' > install/bin/dmd.conf
if [[ '${{ runner.os }}' == Windows ]]; then
echo -e '[Environment64]\nDFLAGS=-I%@P%/../import ucrtbase.lib\nLIB=%@P%/../lib;%@P%/../lib/mingw' > install/bin/dmd.conf
echo -e '[Environment64]\nDFLAGS=-I%@P%/../import\nLIB=%@P%/../lib;%@P%/../lib/mingw' > install/bin/dmd.conf
fi
if [[ '${{ runner.os }}' == macOS ]]; then
echo -e '[Environment64]\nDFLAGS=-I%@P%/../import -L-L%@P%/../lib -fPIC' > install/bin/dmd.conf
Expand Down
10 changes: 1 addition & 9 deletions compiler/src/dmd/vsoptions.d
Original file line number Diff line number Diff line change
Expand Up @@ -289,15 +289,7 @@ version (IN_LLVM) { /* not needed */ } else
*/
const(char)* defaultRuntimeLibrary(bool x64)
{
if (VCInstallDir is null)
{
detectVCInstallDir();
detectVCToolsInstallDir();
}
if (getVCLibDir(x64))
return "libcmt";
else
return "msvcrt120"; // mingw replacement
return "ucrtbase";
}

/**
Expand Down

0 comments on commit 621c038

Please sign in to comment.