Skip to content

Commit 206675d

Browse files
committed
toolchain: use gcc@16.1.0 on Linux, llvm default elsewhere
A pin is still required (an unpinned package falls back to gcc-musl static, which cannot link X11/GL), but it does not have to be llvm. Linux now builds with gcc 16; macOS/Windows keep llvm@20.1.7. Applied to the root package and all examples. Verified: gcc 16 builds the library, both test binaries, and all three examples on Linux.
1 parent e4e168c commit 206675d

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

examples/basic/mcpp.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ license = "MIT"
66

77
[toolchain]
88
default = "llvm@20.1.7"
9+
linux = "gcc@16.1.0"
910

1011
[dependencies]
1112
imgui = { path = "../.." }

examples/glfw_opengl3/mcpp.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ license = "MIT"
66

77
[toolchain]
88
default = "llvm@20.1.7"
9+
linux = "gcc@16.1.0"
910

1011
[dependencies]
1112
imgui = { path = "../.." }

examples/minimal_window/mcpp.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ license = "MIT"
66

77
[toolchain]
88
default = "llvm@20.1.7"
9+
linux = "gcc@16.1.0"
910

1011
[dependencies]
1112
imgui = { path = "../.." }

mcpp.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ path = "src/core.cppm"
1111

1212
[toolchain]
1313
default = "llvm@20.1.7"
14+
linux = "gcc@16.1.0"
1415

1516
[build]
1617
sources = [

0 commit comments

Comments
 (0)