diff options
-rw-r--r-- | docs/markdown/Shipping-prebuilt-binaries-as-wraps.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/Shipping-prebuilt-binaries-as-wraps.md b/docs/markdown/Shipping-prebuilt-binaries-as-wraps.md index 44194e7..e8adb44 100644 --- a/docs/markdown/Shipping-prebuilt-binaries-as-wraps.md +++ b/docs/markdown/Shipping-prebuilt-binaries-as-wraps.md @@ -16,6 +16,11 @@ library at the top level and headers in a subdirectory called ```meson project('bob', 'c') +# Do some sanity checking so that meson can fail early instead of at final link time +if not (host_machine.system() == 'windows' or host_machine.cpu_family() == 'x86_64') + error('This wrap of libbob is a binary wrap for x64_64 Windows, and will not work on your system') +endif + cc = meson.get_compiler('c') bob_dep = declare_dependency( dependencies : cc.find_library('bob', dirs : meson.current_source_dir()), |