mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-01 03:53:33 +00:00
10aade69e3
It's important for build performance to use := rather than = notation so that $(wildcard foo/*) isn't a lazily evaluated lambda. In the case of Python where we need a lot of tuning and excludes, it should help to spell things out a bit more to just not use wildcard for now.
27 lines
1.3 KiB
Bash
Executable file
27 lines
1.3 KiB
Bash
Executable file
#!/bin/sh
|
|
#-*-mode:sh;indent-tabs-mode:nil;tab-width:2;coding:utf-8-*-┐
|
|
#───vi: set net ft=sh ts=2 sts=2 fenc=utf-8 :vi─────────────┘
|
|
|
|
if CLANG=$(command -v clang); then
|
|
mkdir -p o/$MODE/test/libc/release
|
|
$CLANG \
|
|
-o o/$MODE/test/libc/release/smokeclang2.com.dbg \
|
|
-Os \
|
|
-Wall \
|
|
-Werror \
|
|
-static \
|
|
-fno-pie \
|
|
-nostdlib \
|
|
-nostdinc \
|
|
-fuse-ld=lld \
|
|
-mno-red-zone \
|
|
-Wl,-T,o/$MODE/ape/ape.lds \
|
|
-include o/cosmopolitan.h \
|
|
test/libc/release/smoke.c \
|
|
o/$MODE/libc/crt/crt.o \
|
|
o/$MODE/ape/ape.o \
|
|
o/$MODE/cosmopolitan.a || exit
|
|
o/$MODE/test/libc/release/smokeclang2.com.dbg || exit
|
|
fi
|
|
|
|
touch o/$MODE/test/libc/release/clang.ok
|