Move darwin sysroot determination into separate file
authorAndres Freund <andres@anarazel.de>
Thu, 1 Sep 2022 23:54:19 +0000 (16:54 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 1 Sep 2022 23:54:19 +0000 (16:54 -0700)
commit05519126a02ee39bf0957d3d85a1da5bd7e1c09c
treeb9a8d516382d769e985ce89a335117b5f9a2a31f
parent2f2b18bd3f554e96a8cc885b177211be12288e4a
Move darwin sysroot determination into separate file

The sysroot determination is fairly complex and will soon also be needed when
building with meson. Instead of duplicating the logic, move it to a dedicated
shell script invoked both by configure and meson.

Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/2180a97c-c026-1b6c-cec8-d6e499f97017@enterprisedb.com
src/template/darwin
src/tools/darwin_sysroot [new file with mode: 0755]