← All tasks
cppgoogle/highway #873Not a task: already works

emscripten compile linked to pthreads

envgap__google__highway-873

01 / FAILURE SIGNATURE

As reported upstream

compile error:
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
379457ceb1041d2e38c35af02b4ea9990143a070
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

google/highway #873 · read the original issue
For a program using threads and linking to libwhy, I had to add the following line into the cmake file

in order to get it to compile:



```

if (HWY_EMSCRIPTEN)

    target_compile_options(hwy PUBLIC -matomics)

endif()

```



compile error:



`wasm-ld: error: --shared-memory is disallowed by targets.cc.o because it was not compiled with 'atomics' or 'bulk-memory' features.`





@jan-wassenberg how do you feel about adding this line to the file ?

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]