From d0101be19345bc3bb5434d41c1e45eb309d897d9 Mon Sep 17 00:00:00 2001 From: I-mikan-I <67881102+I-mikan-I@users.noreply.github.com> Date: Mon, 4 Mar 2024 14:10:42 +0100 Subject: [PATCH] Update apple/darwin size configurations for dummy benchmark --- config/mac/chips/size-test-clang-ARM-M1/chip.cfg | 6 +++--- config/mac/chips/size-test-clang-X86-64/chip.cfg | 6 +++--- config/mac/chips/size-test-clang/chip.cfg | 5 +++-- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/config/mac/chips/size-test-clang-ARM-M1/chip.cfg b/config/mac/chips/size-test-clang-ARM-M1/chip.cfg index c2047a4d..c5ee4f73 100644 --- a/config/mac/chips/size-test-clang-ARM-M1/chip.cfg +++ b/config/mac/chips/size-test-clang-ARM-M1/chip.cfg @@ -66,8 +66,8 @@ cflags = [ '-D_FORTIFY_SOURCE=0' ] ldflags = [ - '-Os', '-Wl,-dead_strip', - '-nostartfiles', + '-Os', '-rdynamic', '-Wl,-dead_strip', '-target', 'arm64-apple-macos11.1' ] -dummy_libs = ['crt0', 'libc', 'libgcc', 'libm'] +dummy_benchmark = 'dummy-benchmark' +user_libs = ['-lm'] diff --git a/config/mac/chips/size-test-clang-X86-64/chip.cfg b/config/mac/chips/size-test-clang-X86-64/chip.cfg index 1f4e56fe..1250cf72 100644 --- a/config/mac/chips/size-test-clang-X86-64/chip.cfg +++ b/config/mac/chips/size-test-clang-X86-64/chip.cfg @@ -66,8 +66,8 @@ cflags = [ '-D_FORTIFY_SOURCE=0' ] ldflags = [ - '-Os', '-Wl,-dead_strip', - '-nostartfiles', + '-Os', '-rdynamic', '-Wl,-dead_strip', '-target', 'x86_64-apple-macos11.1' ] -dummy_libs = ['crt0', 'libc', 'libgcc', 'libm'] +dummy_benchmark = 'dummy-benchmark' +user_libs = ['-lm'] diff --git a/config/mac/chips/size-test-clang/chip.cfg b/config/mac/chips/size-test-clang/chip.cfg index 4623ce69..0c6e8626 100644 --- a/config/mac/chips/size-test-clang/chip.cfg +++ b/config/mac/chips/size-test-clang/chip.cfg @@ -64,6 +64,7 @@ cflags = [ '-Wincompatible-library-redeclation' ] ldflags = [ - '-Os', '-Wl,-dead_strip', '-nostartfiles', '-nostdlib' + '-Os', '-rdynamic', '-Wl,-dead_strip' ] -dummy_libs = ['crt0', 'libc', 'libgcc', 'libm'] +dummy_benchmark = 'dummy-benchmark' +user_libs = ['-lm']