Skip to content

Commit

Permalink
Avoid '/', '\\' and ':' in build path when --compiler specifies a com…
Browse files Browse the repository at this point in the history
…plex path. Fixes #412.
  • Loading branch information
s-ludwig committed Aug 30, 2014
1 parent ddd10f2 commit 0a17c4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/dub/generators/build.d
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,15 @@ class BuildGenerator : ProjectGenerator {
addHash((cast(uint)buildsettings.options).to!string);
addHash(buildsettings.stringImportPaths);
addHash(settings.platform.architecture);
addHash(settings.platform.compilerBinary);
addHash(settings.platform.compiler);
addHashI(settings.platform.frontendVersion);
auto hashstr = hash.finish().toHexString().idup;

return format("%s-%s-%s-%s-%s-%s", config, settings.buildType,
return format("%s-%s-%s-%s-%s_%s-%s", config, settings.buildType,
settings.platform.platform.join("."),
settings.platform.architecture.join("."),
settings.platform.compilerBinary, hashstr);
settings.platform.compiler, settings.platform.frontendVersion, hashstr);
}

private void copyTargetFile(Path build_path, BuildSettings buildsettings, BuildPlatform platform)
Expand Down

0 comments on commit 0a17c4e

Please sign in to comment.