Skip to content

The Cflags emitted by wasmer config --pkg-config are wrong #1989

Closed
@helje5

Description

Describe the bug

When running wasmer config, the -I in the cflags are incorrect. The include path (-I) adds an additional wasmer to the end.

This is on BS macOS ARM, but I suppose it doesn't matter.

helge@M1ni ~ $ wasmer config --pkg-config
prefix=/Users/helge/.wasmer
exec_prefix=/Users/helge/.wasmer/bin
includedir=/Users/helge/.wasmer/include
libdir=/Users/helge/.wasmer/lib

Name: wasmer
Description: The Wasmer library for running WebAssembly
Version: 1.0.0
Cflags: -I/Users/helge/.wasmer/include/wasmer
Libs: -L/Users/helge/.wasmer/lib -lwasmer

Steps to reproduce

  1. run wasmer config --pkg-config

Expected behavior

The cflags should be:

Cflags: -I/Users/helge/.wasmer/include

Actual behavior

The cflags are:

Cflags: -I/Users/helge/.wasmer/include/wasmer

This directory does not exist.

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions