Skip to content

Commit 5d955b4

Browse files
committed
explicitly specify TOOLCHAIN
Swift can only build with the gcc toolchain; if the default toolchain is clang, we need to reset the toolchain to gcc. (Note that Swift itself uses its own clang.)
1 parent 40e09c4 commit 5d955b4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

classes/swift-cmake-base.bbclass

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
inherit cmake
22

3-
DEPENDS_append += " swift-native libgcc gcc glibc "
3+
# avoid conflicts with meta-clang
4+
TOOLCHAIN = "gcc"
45

56
DEPENDS:append = " swift-native libgcc gcc glibc "
67

classes/swift.bbclass

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# avoid conflicts with meta-clang
2+
TOOLCHAIN = "gcc"
13

24
DEPENDS += "swift-native glibc gcc libgcc swift-stdlib libdispatch libfoundation"
35

0 commit comments

Comments
 (0)