Last active
November 5, 2016 14:18
-
-
Save emlai/cf629399b89bec5a60f7e72ec2e08073 to your computer and use it in GitHub Desktop.
MCVE of "error: in auto-import: failed to get module 'foo' from AST context"
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
.DS_Store | |
/.build | |
/Packages | |
/*.xcodeproj |
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 LLVM_C.Core | |
func foo(_ a: Int) { | |
let b = a * a | |
print(b) | |
} | |
foo(4) |
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
all: | |
@swift build \ | |
-Xcc -I`llvm-config --includedir` \ | |
-Xlinker -L`llvm-config --libdir` \ | |
-Xlinker -rpath -Xlinker `llvm-config --libdir` |
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: "foo", | |
dependencies: [ | |
.Package(url: "https://github.com/rxwei/LLVM_C", majorVersion: 1, minor: 0) | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment