Skip to content

Commit

Permalink
more self-building
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdruppe committed Jun 12, 2024
1 parent 45db7dd commit b15f4d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dmd/dmodule.d
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ else
* global.params.preservePaths get output path from arg
* srcfile Input file - output file name must not match input file
*/
extern(D) FileName setOutfilename(const(char)[] name, const(char)[] dir, const(char)[] arg, const(char)[] ext)
extern(D) FileName setOutfilename(const(char)[] name, const(char)[] dir, const(char)[] arg, const(char)[] ext) @system
{
const(char)[] docfilename;
if (name)
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dmd/root/filename.d
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ version(Windows)
* Nulls are propagated, i.e., if `wide` is null, the returned slice is
* null too.
*/
char[] toNarrowStringz(const(wchar)[] wide, char[] buffer = null) nothrow
char[] toNarrowStringz(const(wchar)[] wide, char[] buffer = null) nothrow @system
{
import dmd.common.file : CodePage;

Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dmd/root/rmem.d
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ extern (C++) struct Mem
return *_pIsGCEnabled;
}

static void disableGC() nothrow @nogc
static void disableGC() nothrow @nogc @system
{
version (IN_LLVM)
{
Expand Down
4 changes: 2 additions & 2 deletions compiler/src/dmd/vsoptions.d
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ version (IN_LLVM)
/**
* detect VCToolsInstallDir from environment or registry (only used by VC 2017)
*/
void detectVCToolsInstallDir()
void detectVCToolsInstallDir() @system
{
if (VCToolsInstallDir is null)
VCToolsInstallDir = getenv("VCTOOLSINSTALLDIR"w);
Expand Down Expand Up @@ -643,7 +643,7 @@ extern(D):
* Returns:
* the registry value if it exists and has string type
*/
const(char)* GetRegistryString(const(char)[] softwareKeyPath, wstring valueName) const
const(char)* GetRegistryString(const(char)[] softwareKeyPath, wstring valueName) const @system
{
enum x64hive = false; // VS registry entries always in 32-bit hive

Expand Down

0 comments on commit b15f4d9

Please sign in to comment.