mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
10 lines
358 B
Text
10 lines
358 B
Text
|
#!/bin/sh
|
||
|
# A Clang wrapper script to fake the clang linker driver.
|
||
|
# Clang linker automatically uses wasm-opt with -O if it found.
|
||
|
# However optimization before asyncify causes misoptimization,
|
||
|
# so wrap clang to insert our fake wasm-opt, which does nothing, in PATH.
|
||
|
|
||
|
src_dir="$(cd "$(dirname "$0")/../wasm" && pwd)"
|
||
|
export PATH="$src_dir:$PATH"
|
||
|
exec "$@"
|