Fix --ftrace with cosmocc

This commit is contained in:
Justine Tunney 2023-08-13 08:25:36 -07:00
parent 5d5b4ce691
commit 504a4bbf84
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -242,7 +242,8 @@ if [ x"$MODE" = x"nox87" ]; then
CCFLAGS="$CCFLAGS -mlong-double-64" CCFLAGS="$CCFLAGS -mlong-double-64"
fi fi
if [ x"$OPT" != x"-Os" ] && [ x"${MODE#tiny}" != x"${MODE}" ]; then if [ x"$OPT" != x"-Os" ] && # $OPT != -Os
[ x"${MODE%tiny}" = x"${MODE}" ]; then # $MODE not in (tiny, aarch64-tiny)
# support --ftrace unless optimizing for size # support --ftrace unless optimizing for size
CCFLAGS="$CCFLAGS -fpatchable-function-entry=18,16" CCFLAGS="$CCFLAGS -fpatchable-function-entry=18,16"
fi fi