aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2024-01-14 20:09:59 +0000
committerIain Sandoe <iain@sandoe.co.uk>2024-01-18 14:01:45 +0000
commitefe4ea2754f5488dd84eb1a76815c1177dc6897c (patch)
treee8acc64dbe94346ca01a57e1b7dbafd671f02b94 /gcc
parent283e3a974bf08e4fb64d51d2062e1f7ed7482ff4 (diff)
downloadgcc-efe4ea2754f5488dd84eb1a76815c1177dc6897c.zip
gcc-efe4ea2754f5488dd84eb1a76815c1177dc6897c.tar.gz
gcc-efe4ea2754f5488dd84eb1a76815c1177dc6897c.tar.bz2
testsuite, jit, Darwin: Add libSystem to a test.
test-ggc-bugfix.c fails early on Darwin versions using a linker that complains if libSystem is not present on user-land link lines. Add this to fix that specific issue. gcc/testsuite/ChangeLog: * jit.dg/test-ggc-bugfix.c: Add libSystem for Darwin. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/jit.dg/test-ggc-bugfix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/jit.dg/test-ggc-bugfix.c b/gcc/testsuite/jit.dg/test-ggc-bugfix.c
index 59eb374..fb857fb 100644
--- a/gcc/testsuite/jit.dg/test-ggc-bugfix.c
+++ b/gcc/testsuite/jit.dg/test-ggc-bugfix.c
@@ -12,6 +12,11 @@ create_code (gcc_jit_context *ctxt, void *user_data)
{
gcc_jit_context_add_command_line_option (ctxt, "-flto");
gcc_jit_context_add_driver_option (ctxt, "-nostdlib");
+#if __APPLE__
+ /* On newer macOS, the test will fail with a complaint from the linker about
+ all user-land exes needing libSystem, so add it. */
+ gcc_jit_context_add_driver_option (ctxt, "-lSystem");
+#endif
gcc_jit_type *type_int = gcc_jit_context_get_type (ctxt, GCC_JIT_TYPE_INT);
gcc_jit_param *params_for_func_main[0] = {