Skip to content

Commit 0db249a

Browse files
committed
Set TOOLCHAIN_VERSION appropriately when a toolchain is primary
1 parent b4becef commit 0db249a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SWBCore/ToolchainRegistry.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ public final class Toolchain: Hashable, Sendable {
274274
defaultSettingsWhenPrimary = settingsItems
275275
}
276276
defaultSettingsWhenPrimary["TOOLCHAIN_DIR"] = .plString(path.str)
277+
defaultSettingsWhenPrimary["TOOLCHAIN_VERSION"] = .plString(version.description)
277278

278279
var executableSearchPaths = [
279280
path.join("usr").join("bin"),

0 commit comments

Comments
 (0)