From 504a4bbf84f0c8bdef056a472ce32d591347aeba Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Sun, 13 Aug 2023 08:25:36 -0700 Subject: [PATCH] Fix --ftrace with cosmocc --- bin/cosmocc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/cosmocc b/bin/cosmocc index 99c763ba6..6fc48887a 100755 --- a/bin/cosmocc +++ b/bin/cosmocc @@ -242,7 +242,8 @@ if [ x"$MODE" = x"nox87" ]; then CCFLAGS="$CCFLAGS -mlong-double-64" 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 CCFLAGS="$CCFLAGS -fpatchable-function-entry=18,16" fi