From b70272f774a7260f88a339c22032624ce2753c11 Mon Sep 17 00:00:00 2001 From: Etienne Cimon Date: Tue, 9 Jan 2024 13:35:27 -0500 Subject: [PATCH] Add some formatting adjustments --- source/dub/compilers/compiler.d | 6 ++---- source/dub/compilers/utils.d | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/source/dub/compilers/compiler.d b/source/dub/compilers/compiler.d index 94530a925..a00c24ca4 100644 --- a/source/dub/compilers/compiler.d +++ b/source/dub/compilers/compiler.d @@ -188,15 +188,13 @@ interface Compiler { enforce!CompilerInvocationException(result.status == 0, format("Failed to invoke the compiler %s to determine the build platform: %s", compiler_binary, result.output)); - BuildPlatform build_platform; - - build_platform = readPlatformSDLProbe(result.output); + BuildPlatform build_platform = readPlatformSDLProbe(result.output); string ver = determineVersion(compiler_binary, result.output).strip; build_platform.compilerBinary = compiler_binary; if (ver.empty) { logWarn(`Could not probe the compiler version for "%s". ` ~ - `Toolchain requirements might be ineffective`, build_platform.compiler); + `Toolchain requirements might be ineffective`, build_platform.compiler); } else { build_platform.compilerVersion = ver; diff --git a/source/dub/compilers/utils.d b/source/dub/compilers/utils.d index 536c37132..2b8addf7b 100644 --- a/source/dub/compilers/utils.d +++ b/source/dub/compilers/utils.d @@ -268,7 +268,6 @@ private enum probeEndMark = "__dub_probe_end__"; */ NativePath generatePlatformProbeFile() { - import dub.internal.vibecompat.core.file; import dub.internal.utils; import std.string : format; @@ -278,7 +277,7 @@ NativePath generatePlatformProbeFile() alias string = const(char)[]; }; - // try to not use phobos in the probe to avoid long import times + // avoid druntime so that this compiles without a compiler's builtin object.d enum probe = q{ %1$s pragma(msg, `%2$s`);