-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add target-prefixed executables to the installation
bin
directory
Currently the `bin` directory installed by wasi-sdk is not currently suitable for putting in `$PATH` in all cases because it can shadow a system-installed `clang` executable which is intended for native binaries. For Linux distributions with gcc-based cross-compilers I've often seen the pattern where they're installed as `$target-gcc` and so I've taken a leaf out of their books to do that here as well. This commit adds, currently alongside the preexisting `clang` executable, target-prefixed executables such as `wasm32-wasi-clang` and `wasm32-wasi-clang++`. These executables are symlinks to the `clang` executable itself in the same manner that `clang++` is a symlink to `clang` itself. I'll also note that this doesn't fix the problem of "add the wasi-sdk bin dir to PATH" because `clang` and other prominent executables are still there. My hope though is that this opens up a future refactoring for doing so.
- Loading branch information
1 parent
c2f9c10
commit c2e39c9
Showing
3 changed files
with
37 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters