[Bug 1536780] Review Request: swift-lang - Apple' s Swift Programming Language

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1536780



--- Comment #41 from Ron Olson <tachoknight@xxxxxxxxx> ---
Swift does have its own clang for building itself, but it uses the system clang
for compiling Swift code. Here's a session capture that illustrates this:

[rolson@thinky swift-source]$ uname -a
Linux thinky 4.16.9-300.fc28.x86_64 #1 SMP Thu May 17 06:39:18 UTC 2018 x86_64
x86_64 x86_64 GNU/Linux
[rolson@thinky swift-compile-test]$ more /etc/os-release
NAME=Fedora
VERSION="28 (Workstation Edition)"
ID=fedora
VERSION_ID=28
PLATFORM_ID="platform:f28"
PRETTY_NAME="Fedora 28 (Workstation Edition)"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:28"
HOME_URL="https://fedoraproject.org/";
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help";
BUG_REPORT_URL="https://bugzilla.redhat.com/";
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=28
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=28
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy";
VARIANT="Workstation Edition"
VARIANT_ID=workstation
[rolson@thinky swift-source]$ rpm -qf /usr/bin/clang
clang-6.0.0-5.fc28.x86_64
[rolson@thinky swift-source]$ rpm -qf /usr/bin/swiftc
swift-lang-4.2-0.10.20180520gitbb77484.fc28.x86_64
[rolson@thinky swift-source]$ cd /tmp/swift-compile-test/
[rolson@thinky swift-compile-test]$ more test.swift
print("Hello World!")
[rolson@thinky swift-compile-test]$ swift test.swift
Hello World!
[rolson@thinky swift-compile-test]$ swiftc test.swift
[rolson@thinky swift-compile-test]$ ls
test  test.swift
[rolson@thinky swift-compile-test]$ ./test
Hello World!
[rolson@thinky swift-compile-test]$ rm test
[rolson@thinky swift-compile-test]$ sudo mv /usr/bin/clang /usr/bin/xxxclang
[sudo] password for rolson:
[rolson@thinky swift-compile-test]$ swiftc test.swift
<unknown>:0: error: unable to execute command: <unknown>
[rolson@thinky swift-compile-test]$ sudo mv /usr/bin/xxxclang /usr/bin/clang
[rolson@thinky swift-compile-test]$ swiftc test.swift
[rolson@thinky swift-compile-test]$ ./test
Hello World!
[rolson@thinky swift-compile-test]$ file test
test: ELF 64-bit LSB pie executable x86-64, version 1 (SYSV), dynamically
linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0,
BuildID[sha1]=227b6b70d8114874c4a7aadcb01a8c34240eb791, not stripped
[rolson@thinky swift-compile-test]$

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx/message/J55OSBSBBXDGWUD3M3LHGJUNDSNK2BQW/




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux