mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
12 lines
317 B
Bash
Executable File
12 lines
317 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -exo pipefail
|
|
source $(dirname -- "${BASH_SOURCE[0]}")/env.sh
|
|
|
|
mkdir -p $BUN_DEPS_OUT_DIR
|
|
|
|
cd $BUN_DEPS_DIR/tinycc
|
|
make clean
|
|
CFLAGS="${CFLAGS} -DTCC_LIBTCC1=\\\"\0\\\"" ./configure --enable-static --cc="$CC" --ar="$AR" --config-predefs=yes
|
|
make libtcc.a -j$CPUS
|
|
cp libtcc.a $BUN_DEPS_OUT_DIR
|