summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2022-09-06 12:43:08 -0400
committerAnthony Green <green@moxielogic.com>2022-09-06 12:43:08 -0400
commitb2344575569bc3bd129ad0ff92b49dc220fb287b (patch)
tree58291f7446735d1719e4c779dc7d540dde002ab5 /testsuite
parentfc4e7c4a10dff3c99d7ea9be33d47e6d5f0efda7 (diff)
downloadlibffi-b2344575569bc3bd129ad0ff92b49dc220fb287b.tar.gz
Fix unwindtest on macos
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/lib/libffi.exp6
-rw-r--r--testsuite/libffi.closures/unwindtest.cc2
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/lib/libffi.exp b/testsuite/lib/libffi.exp
index d77f53d..d21e4e5 100644
--- a/testsuite/lib/libffi.exp
+++ b/testsuite/lib/libffi.exp
@@ -378,7 +378,8 @@ proc libffi_target_compile { source dest type options } {
if { [istarget "*-*-darwin9*"] || [istarget "*-*-darwin1*"]
|| [istarget "*-*-darwin2*"] } {
- lappend options "additional_flags=-Wl,-allow_stack_execute"
+ # lappend options "additional_flags=-Wl,-allow_stack_execute"
+ lappend options "additional_flags=-Wno-unused-command-line-argument"
}
# If you're building the compiler with --prefix set to a place
@@ -403,6 +404,9 @@ proc libffi_target_compile { source dest type options } {
# this may be required for g++, but just confused clang.
if { [string match "*.cc" $source] } {
lappend options "c++"
+ if { [string match "*-*-darwin*" $target_triplet] } {
+ lappend options "libs= -lc++"
+ }
}
if { [string match "arc*-*-linux*" $target_triplet] } {
diff --git a/testsuite/libffi.closures/unwindtest.cc b/testsuite/libffi.closures/unwindtest.cc
index e114565..6c97c61 100644
--- a/testsuite/libffi.closures/unwindtest.cc
+++ b/testsuite/libffi.closures/unwindtest.cc
@@ -4,7 +4,7 @@
PR: none.
Originator: Jeff Sturm <jsturm@one-point.com> */
-/* { dg-do run { xfail x86_64-apple-darwin* moxie*-*-* } } */
+/* { dg-do run { xfail moxie*-*-* } } */
#include "ffitest.h"