Skip to content

Commit 4e6bbba

Browse files
d-musiquethewilsonator
authored andcommitted
Clean up placeholder work
1 parent f6298a5 commit 4e6bbba

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

driver/configfile.d

+2-7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
//===----------------------------------------------------------------------===//
1313
module driver.configfile;
1414

15+
import dmd.globals;
1516
import dmd.root.array;
1617
import driver.config;
1718
import core.stdc.stdio;
@@ -110,18 +111,12 @@ struct CfgPaths
110111
}
111112
}
112113

113-
extern(C++, "ldc")
114-
{
115-
extern __gshared const(const(char) *) ldc_version;
116-
}
117-
118114
string replacePlaceholders(string str, CfgPaths cfgPaths)
119115
{
120-
const dVersion = ldc_version[0..strlen(ldc_version)];
121116
return str
122117
.replace("%%ldcbinarypath%%", cfgPaths.ldcBinaryDir)
123118
.replace("%%ldcconfigpath%%", cfgPaths.cfgBaseDir)
124-
.replace("%%ldcversion%%", cast(string) dVersion);
119+
.replace("%%ldcversion%%", cast(string) global.ldc_version);
125120
}
126121

127122
extern(C++) struct ConfigFile

0 commit comments

Comments
 (0)