summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorJohn Bates <jbates@chromium.org>2021-05-25 13:21:40 -0700
committerMarge Bot <eric+marge@anholt.net>2021-06-09 21:28:17 +0000
commitdf1a4e749f5205c0a73671f5e3b59062b85fa565 (patch)
tree756fdcdccacb346eb0caf3e140df60e8009756f5 /meson_options.txt
parent8b7ff78443b0b3843be20928be63944eea540972 (diff)
downloadmesa-df1a4e749f5205c0a73671f5e3b59062b85fa565.tar.gz
mesa-df1a4e749f5205c0a73671f5e3b59062b85fa565.tar.bz2
mesa-df1a4e749f5205c0a73671f5e3b59062b85fa565.zip
add execmem build option
The execmem option can be set to false to disable the dynamic dispatch patching that requires mmap(PROT_WRITE | PROT_EXEC), which is undesirable on some platforms. Signed-off-by: John Bates <jbates@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10987>
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 11feb3f6763..84150789f3c 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -377,7 +377,13 @@ option(
'selinux',
type : 'boolean',
value : false,
- description : 'Build an SELinux-aware Mesa'
+ description : 'Build an SELinux-aware Mesa. This currently disables execmem support at runtime unless SELinux is configured with allow_execmem.'
+)
+option(
+ 'execmem',
+ type : 'boolean',
+ value : true,
+ description : 'Enable execmem support. Without execmem, glapi will fail to generate dynamic glapi stubs when entrypoints unknown to glapi but known to DRI drivers are requested in eglGetProcAddress or glXGetProcAddress. This should be enabled unless the platform can guarantee glapi and DRI drivers are always built from the same source tree.'
)
option(
'osmesa',