google / google/XNNPACK

Building with Emscripten using Cmake incorrectly identifies XNNPACK_TARGET_PROCESSOR

Open
#8,759 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
2.5k
Forks
560
Avg merge
1d 6h
Merged PRs (30d)
163

Description

When using Emscripten with Cmake to build the project, I get this in the console
```
-- Building for XNNPACK_TARGET_PROCESSOR: x86
```
It then proceeds to attempt to compile with compile options that are only compatible with x86.

It seems like the CMakeList doesn't check if the Emscripten toolchain is being used or if CMAKE_SYSTEM_NAME is equal to "Emscripten". It is using CMAKE_SYSTEM_PROCESSOR to determine XNNPACK_TARGET_PROCESSOR.

It also doesn't seem like any options are configured for Wasm despite Emscripten being listed under supported systems.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.