-
-
Save stephencelis/5de13eeb9743e7a3aed3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swift build -Xcc -I/usr/local/opt/llvm/include -Xlinker -L/usr/local/opt/llvm/lib -vv | |
# /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /Users/stephencelis/Developer/LLVM/Package.swift | |
# /usr/local/bin/git clone --recursive --depth 10 /Users/stephencelis/Developer/CLLVM /Users/stephencelis/Developer/LLVM/Packages/CLLVM | |
# Cloning into '/Users/stephencelis/Developer/LLVM/Packages/CLLVM'... | |
# warning: --depth is ignored in local clones; use file:// instead. | |
# done. | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM fetch --tags origin | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM tag -l | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM tag -l | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM tag -l | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM reset --hard 1.0.0 | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM branch -m 1.0.0 | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM config --get remote.origin.url | |
# Using version 1.0.0 of package CLLVM | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM config --get remote.origin.url | |
# /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /Users/stephencelis/Developer/LLVM/Packages/CLLVM/Package.swift | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM config --get remote.origin.url | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM rev-parse --abbrev-ref HEAD | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0 config --get remote.origin.url | |
# /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0/Package.swift | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0 config --get remote.origin.url | |
# /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swiftc --driver-mode=swift -I /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/lib/swift/pm -L /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/lib/swift/pm -lPackageDescription -target x86_64-apple-macosx10.10 /Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0/Package.swift | |
# /usr/local/bin/git -C /Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0 config --get remote.origin.url | |
# /usr/bin/xcrun --sdk macosx --show-sdk-path | |
# /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swift-build-tool -v -f /Users/stephencelis/Developer/LLVM/.build/debug/CLLVM.o/llbuild.yaml | |
# /usr/bin/xcrun --sdk macosx --show-sdk-path | |
# /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swift-build-tool -v -f /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.o/llbuild.yaml | |
# /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swiftc -module-name LLVM -incremental -emit-dependencies -emit-module -emit-module-path /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.swiftmodule -output-file-map /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.o/LLVM/output-file-map.json -c /Users/stephencelis/Developer/LLVM/Sources/main.swift -I /Users/stephencelis/Developer/LLVM/.build/debug -j8 -Onone -g -v -target x86_64-apple-macosx10.10 -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -Xcc -F-module-map=/Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0/module.modulemap -I /Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0 -I /usr/local/include -D SWIFT_PACKAGE -Xcc -I/usr/local/opt/llvm/include | |
# Apple Swift version 3.0-dev (LLVM a7663bb722, Clang 4ca3c7fa28, Swift 1c2f40e246) | |
# Target: x86_64-apple-macosx10.10 | |
# /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swift -frontend -c -primary-file /Users/stephencelis/Developer/LLVM/Sources/main.swift -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I /Users/stephencelis/Developer/LLVM/.build/debug -I /Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0 -I /usr/local/include -g -D SWIFT_PACKAGE -Xcc -F-module-map=/Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0/module.modulemap -Xcc -I/usr/local/opt/llvm/include -emit-module-doc-path /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.o/LLVM/main~partial.swiftdoc -Onone -module-name LLVM -emit-module-path /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.o/LLVM/main~partial.swiftmodule -emit-dependencies-path /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.o/LLVM/main.d -emit-reference-dependencies-path /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.o/LLVM/main.swiftdeps -o /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.o/Sources/main.swift.o | |
# /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swift -frontend -emit-module /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.o/LLVM/main~partial.swiftmodule -parse-as-library -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I /Users/stephencelis/Developer/LLVM/.build/debug -I /Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0 -I /usr/local/include -g -D SWIFT_PACKAGE -Xcc -F-module-map=/Users/stephencelis/Developer/LLVM/Packages/CLLVM-1.0.0/module.modulemap -Xcc -I/usr/local/opt/llvm/include -emit-module-doc-path /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.swiftdoc -module-name LLVM -o /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.swiftmodule | |
# /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swiftc -o /Users/stephencelis/Developer/LLVM/.build/debug/LLVM /Users/stephencelis/Developer/LLVM/.build/debug/LLVM.o/Sources/main.swift.o -target x86_64-apple-macosx10.10 -Xlinker -all_load -g -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/usr/local/lib -Xlinker -L/usr/local/opt/llvm/lib | |
# Undefined symbols for architecture x86_64: | |
# "_LLVMGetGlobalContext", referenced from: | |
# _main in main.swift.o | |
# ld: symbol(s) not found for architecture x86_64 | |
# <unknown>:0: error: link command failed with exit code 1 (use -v to see invocation) | |
# <unknown>:0: error: build had 1 command failures | |
# error: exit(1): ["/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a.xctoolchain/usr/bin/swift-build-tool", "-v", "-f", "/Users/stephencelis/Developer/LLVM/.build/debug/LLVM.o/llbuild.yaml"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define __STDC_CONSTANT_MACROS | |
#define __STDC_LIMIT_MACROS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module CLLVM [system] { | |
header "defines.h" | |
header "/usr/local/opt/llvm/include/llvm-c/Core.h" | |
link "LLVMCore" | |
export * | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import CLLVM | |
let ref = LLVMGetGlobalContext() | |
print(ref != nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PackageDescription | |
let package = Package( | |
name: "LLVM", | |
dependencies: [ | |
.Package(url: "../CLLVM", majorVersion: 1) | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment