Skip to content

Commit 835b500

Browse files
committed
fix: cflags emitted by wasmer config --pkg-config are now correct
Closes #1989
1 parent 6711a36 commit 835b500

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

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

1718
## 1.0.2 - 2021-02-04
1819

lib/cli/src/commands/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl Config {
5656
let bindir = prefix.join("bin").display().to_string();
5757
let includedir = prefix.join("include").display().to_string();
5858
let libdir = prefix.join("lib").display().to_string();
59-
let cflags = format!("-I{}/wasmer", includedir);
59+
let cflags = format!("-I{}", includedir);
6060
let libs = format!("-L{} -lwasmer", libdir);
6161

6262
if self.pkg_config {

0 commit comments

Comments
 (0)