From a5a3e78fcf28493177c506693467ec7b7b7b6982 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Thu, 22 Feb 2024 12:13:16 -0800 Subject: [PATCH] Make ftrace/strace C APIs work with cosmocc --- tool/cosmocc/bin/cosmocc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/cosmocc/bin/cosmocc b/tool/cosmocc/bin/cosmocc index 4104a95ce..b225ad5fc 100755 --- a/tool/cosmocc/bin/cosmocc +++ b/tool/cosmocc/bin/cosmocc @@ -267,8 +267,8 @@ LDFLAGS_AARCH64="$LDFLAGS -L$BIN/../aarch64-linux-cosmo/lib -Wl,-T,$BIN/../aarch LDLIBS_AARCH64="-lcosmo" if [ x"$OPT" != x"-Os" ] && [ x"$MODE" != x"tiny" ]; then - CFLAGS_X86_64="${CFLAGS_X86_64} -fpatchable-function-entry=18,16 -fno-inline-functions-called-once" - CFLAGS_AARCH64="${CFLAGS_AARCH64} -fpatchable-function-entry=7,6 -fno-inline-functions-called-once" + CFLAGS_X86_64="${CFLAGS_X86_64} -fpatchable-function-entry=18,16 -fno-inline-functions-called-once -DFTRACE -DSYSDEBUG" + CFLAGS_AARCH64="${CFLAGS_AARCH64} -fpatchable-function-entry=7,6 -fno-inline-functions-called-once -DFTRACE -DSYSDEBUG" fi if [ x"$PROG" != x"${PROG%++}" ]; then