emscripten-core / emscripten-core/emscripten

Feature request: -Wl,--force-exe-suffix counterpart

Open
#14,386 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

I failed to find an option that could automatically append `.js` to the output of `emcc -o foobar foobar.c`.

In the `ld` man page:

```
--force-exe-suffix
Make sure that an output file has a .exe suffix.

If a successfully built fully linked output file does not have a
".exe" or ".dll" suffix, this option forces the linker to copy the
output file to one of the same name with a ".exe" suffix. This
option is useful when using unmodified Unix makefiles on a
Microsoft Windows host, since some versions of Windows won't run an
image unless it ends in a ".exe" suffix.
```

Much appreciated if similar functionality can be provided in Emscripten.

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.