Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: fusl/tools/musl-clang.in

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/tools/mkalltypes.sed ('k') | fusl/tools/musl-gcc.specs.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/sh
2 cc="@CC@"
3 libc="@PREFIX@"
4 libc_inc="@INCDIR@"
5 libc_lib="@LIBDIR@"
6 thisdir="`cd "$(dirname "$0")"; pwd`"
7
8 # prevent clang from running the linker (and erroring) on no input.
9 sflags=
10 eflags=
11 for x ; do
12 case "$x" in
13 -l*) input=1 ;;
14 *) input= ;;
15 esac
16 if test "$input" ; then
17 sflags="-l-user-start"
18 eflags="-l-user-end"
19 break
20 fi
21 done
22
23 exec $cc \
24 -B"$thisdir" \
25 -fuse-ld=musl-clang \
26 -static-libgcc \
27 -nostdinc \
28 --sysroot "$libc" \
29 -isystem "$libc_inc" \
30 -L-user-start \
31 $sflags \
32 "$@" \
33 $eflags \
34 -L"$libc_lib" \
35 -L-user-end
OLDNEW
« no previous file with comments | « fusl/tools/mkalltypes.sed ('k') | fusl/tools/musl-gcc.specs.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698