mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
16 lines
317 B
Bash
Executable File
16 lines
317 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euxo pipefail
|
|
source $(dirname -- "${BASH_SOURCE[0]}")/env.sh
|
|
|
|
export CPU_TARGET="${1:-${CPU_TARGET:-native}}"
|
|
|
|
cmake -S . \
|
|
-G Ninja \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DUSE_LTO=ON \
|
|
-DBUN_CPP_ONLY=1 \
|
|
-DNO_CONFIGURE_DEPENDS=1
|
|
|
|
chmod +x compile-cpp-only.sh
|
|
bash compile-cpp-only.sh -v
|