Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #18 from nodes-vapor/feature/cstack-now-on-apt
Browse files Browse the repository at this point in the history
Add APT guide
  • Loading branch information
steffendsommer authored Jan 15, 2018
2 parents a135a98 + af8d77a commit 6d37542
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ For Stacked to work, you first need to install the [CStack](https://github.com/n

#### macOS and Homebrew

Currently the CStack library can be installed through the Vapor tap (by running `brew install cstack`). If that doesn't work for some reason or Vapor decides to remove the library from their tap, it can be installed through the Nodes tap by following these steps:

First add the tap:

```
Expand All @@ -30,7 +32,17 @@ brew install cstack

#### Linux and APT

We're working hard on making CStack available on Linux (through APT) and we'll make sure to update this readme as soon as it gets ready.
To install CStack on Linux using APT, you first need to setup the Vapor APT repository. The guide for this can be found [here](https://github.com/vapor/apt). After that, CStack can be installed by doing:

```
apt-get update
```

And then:

```
apt-get install cstack
```

### Integrating `Stacked` in your project

Expand All @@ -39,6 +51,13 @@ Update your `Package.swift` file.
.Package(url: "https://github.com/nodes-vapor/stacked.git", majorVersion: 0)
```

### Exporting symbols for the stracktraces

Unfortunately, we're not able to specify the needed flags for running any project wanting stacktraces through SPM, since it uses a limited set of whitelisted flags. Because of that, you would need to manually add these flags when building your project:

```
-Xlinker --export-dynamic
```

## Getting started 🚀

Expand Down

0 comments on commit 6d37542

Please sign in to comment.