Skip to content

Commit

Permalink
CCFLAGS => CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanson committed Aug 20, 2024
1 parent 2bec9f8 commit 87f694e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/programs/_build_clang_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -ex
ROOT_DIR=$(pwd)
CC="clang-18"
LD="ld.lld-18"
CCFLAGS="--target=riscv64 -march=rv64imac_zba_zbb_zbc_zbs -nostdinc -isystem $ROOT_DIR/deps/musl/release/include -c -fdata-sections -ffunction-sections"
CFLAGS="--target=riscv64 -march=rv64imac_zba_zbb_zbc_zbs -nostdinc -isystem $ROOT_DIR/deps/musl/release/include -c -fdata-sections -ffunction-sections"
LDFLAGS="--gc-sections -nostdlib --sysroot $ROOT_DIR/deps/musl/release -L$ROOT_DIR/deps/musl/release/lib -lc -lgcc"

if [ ! -d deps ]; then
Expand All @@ -24,4 +24,4 @@ if [ ! -d deps/musl/release ]; then
cd -
fi

$CC $CCFLAGS clang_sample.c -o clang_sample.o && $LD $LDFLAGS clang_sample.o -o clang_sample && rm clang_sample.o
$CC $CFLAGS clang_sample.c -o clang_sample.o && $LD $LDFLAGS clang_sample.o -o clang_sample && rm clang_sample.o

0 comments on commit 87f694e

Please sign in to comment.