tests/153: skip with PGI as macros are unique

pull/5681/head
Michael Hirsch, Ph.D 6 years ago committed by Dylan Baker
parent 02159bc54b
commit 571deb5f9e
  1. 5
      test cases/common/152 shared module resolving symbol in executable/meson.build

@ -9,6 +9,11 @@ project('shared module resolving symbol in executable', 'c')
# See testcase 125 for an example of the more complex portability gymnastics # See testcase 125 for an example of the more complex portability gymnastics
# required if we do not know (at link-time) what provides the symbol. # required if we do not know (at link-time) what provides the symbol.
cc = meson.get_compiler('c')
if cc.get_id() == 'pgi'
error('MESON_SKIP_TEST PGI has its own unique set of macros that would need to be handled')
endif
dl = meson.get_compiler('c').find_library('dl', required: false) dl = meson.get_compiler('c').find_library('dl', required: false)
e = executable('prog', 'prog.c', dependencies: dl, export_dynamic: true) e = executable('prog', 'prog.c', dependencies: dl, export_dynamic: true)
m = shared_module('module', 'module.c', link_with: e) m = shared_module('module', 'module.c', link_with: e)

Loading…
Cancel
Save