Skip to content

Commit

Permalink
Merge pull request #2101 from wasmerio/pkg-config-cflags
Browse files Browse the repository at this point in the history
fix: cflags emitted by `wasmer config --pkg-config` are now correct
  • Loading branch information
syrusakbary authored Feb 9, 2021
2 parents 6711a36 + 835b500 commit c11a37f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

### Fixed
- [#2097](https://github.com/wasmerio/wasmer/pull/2097) Fix how string's length is computed in `wasm_cpu_features_add` in the C API.
- [#2101](https://github.com/wasmerio/wasmer/pull/2101) cflags emitted by `wasmer config --pkg-config` are now correct.

## 1.0.2 - 2021-02-04

Expand Down
2 changes: 1 addition & 1 deletion lib/cli/src/commands/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl Config {
let bindir = prefix.join("bin").display().to_string();
let includedir = prefix.join("include").display().to_string();
let libdir = prefix.join("lib").display().to_string();
let cflags = format!("-I{}/wasmer", includedir);
let cflags = format!("-I{}", includedir);
let libs = format!("-L{} -lwasmer", libdir);

if self.pkg_config {
Expand Down

0 comments on commit c11a37f

Please sign in to comment.