eab39222c5
Currently it supports only on-device builds. https://github.com/termux/termux-packages/pull/4895 How to build: cp -a ./disabled-packages/swift ./packages/ pkg install clang binutils-gold file patch python cmake ninja python2 perl rsync libandroid-spawn libcurl libicu libsqlite libuuid libxml2 llbuild pkg-config TERMUX_MAKE_PROCESSES=7 ./build-package.sh swift
14 lines
449 B
Diff
14 lines
449 B
Diff
diff --git a/llbuild/products/llbuildSwift/BuildSystemBindings.swift b/llbuild/products/llbuildSwift/BuildSystemBindings.swift
|
|
index 33b3e88..1236069 100644
|
|
--- a/llbuild/products/llbuildSwift/BuildSystemBindings.swift
|
|
+++ b/llbuild/products/llbuildSwift/BuildSystemBindings.swift
|
|
@@ -8,7 +8,7 @@
|
|
|
|
// This file contains Swift bindings for the llbuild C API.
|
|
|
|
-#if os(Linux)
|
|
+#if canImport(Glibc)
|
|
import Glibc
|
|
#elseif os(Windows)
|
|
import MSVCRT
|