Skip to content

Commit 9df9b66

Browse files
authored
Merge pull request #39 from CodaFi/filecheck-yourself-before-you-wreck-yourself
[WIP] Filecheck yourself before you wreck yourself
2 parents 306ad5f + 3a7c101 commit 9df9b66

File tree

6 files changed

+1199
-7
lines changed

6 files changed

+1199
-7
lines changed

.travis.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ matrix:
1111
- brew install llvm
1212
- sudo swift utils/make-pkgconfig.swift
1313
script:
14-
- swift build
14+
- swift test
1515
- os: linux
1616
language: generic
1717
sudo: required
@@ -25,7 +25,10 @@ matrix:
2525
- wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
2626
- sudo apt-add-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main"
2727
- sudo apt-get update
28-
- sudo apt-get install llvm-${LLVM_API_VERSION}
28+
- sudo apt-get install llvm-${LLVM_API_VERSION} libc++1
29+
# Move libC++ into place
30+
- sudo cp /usr/lib/x86_64-linux-gnu/libc++.so.1.0 /usr/lib/
31+
- sudo ln -sf /usr/lib/libc++.so.1.0 /usr/lib/libc++.so
2932
# Work around pre-installed clang
3033
- sudo rm -rf /usr/local/clang-*/bin/llvm-config
3134
- ls -l /usr/bin/llvm-config*
@@ -39,4 +42,4 @@ matrix:
3942
# Move the package config file into place
4043
- sudo ./swift-3.0.2-RELEASE-ubuntu14.04/usr/bin/swift utils/make-pkgconfig.swift
4144
script:
42-
- swift build
45+
- swift test

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Once you do that, you can start adding functions, global variables, and generati
2020

2121
```swift
2222
let main = builder.addFunction(name: "main",
23-
type: FunctionType(argTypes: [],
24-
returnType: VoidType())
25-
let entry = function.appendBasicBlock(named: "entry")
23+
type: FunctionType(argTypes: [],
24+
returnType: VoidType()))
25+
let entry = main.appendBasicBlock(named: "entry")
2626
builder.positionAtEnd(of: entry)
2727

2828
builder.buildRetVoid()

0 commit comments

Comments
 (0)