Skip to content

Commit

Permalink
Check whether gnatmake can link with -shared
Browse files Browse the repository at this point in the history
Currently, gnat-llvm does not ship a shared libgnat.  This patch
changes the relevant test to check whether linking with -shared
actually works.
  • Loading branch information
tromey committed Mar 4, 2025
1 parent e933812 commit b55f906
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions gdb/testsuite/gdb.ada/win_fu_syms.exp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
load_lib "ada.exp"

require allow_ada_tests
require ada_shared_link

standard_ada_testfile foo

Expand Down
9 changes: 9 additions & 0 deletions gdb/testsuite/lib/ada.exp
Original file line number Diff line number Diff line change
Expand Up @@ -289,3 +289,12 @@ gdb_caching_proc ada_minimal_encodings {} {
gdb_caching_proc ada_og {} {
return [ada_simple_compile gnat_og additional_flags=-Og]
}

# Return 1 if GNAT can link with -shared.
gdb_caching_proc ada_shared_link {} {
return [ada_simple_compile ada_shared_link {
additional_flags=-bargs
additional_flags=-shared
additional_flags=-margs
}]
}

0 comments on commit b55f906

Please sign in to comment.