We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0276ae4 commit c15631fCopy full SHA for c15631f
meson.build
@@ -233,8 +233,10 @@ elif host_system == 'darwin'
233
sysroot_args = [files('src/tools/darwin_sysroot'), get_option('darwin_sysroot')]
234
pg_sysroot = run_command(sysroot_args, check:true).stdout().strip()
235
message('darwin sysroot: @0@'.format(pg_sysroot))
236
- cflags += ['-isysroot', pg_sysroot]
237
- ldflags += ['-isysroot', pg_sysroot]
+ if pg_sysroot != ''
+ cflags += ['-isysroot', pg_sysroot]
238
+ ldflags += ['-isysroot', pg_sysroot]
239
+ endif
240
# meson defaults to -Wl,-undefined,dynamic_lookup for modules, which we
241
# don't want because a) it's different from what we do for autoconf, b) it
242
# causes warnings starting in macOS Ventura
0 commit comments