diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /config/external/rlbox/rlbox_config.h | |
parent | Initial commit. (diff) | |
download | firefox-esr-upstream/115.8.0esr.tar.xz firefox-esr-upstream/115.8.0esr.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'config/external/rlbox/rlbox_config.h')
-rw-r--r-- | config/external/rlbox/rlbox_config.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/config/external/rlbox/rlbox_config.h b/config/external/rlbox/rlbox_config.h new file mode 100644 index 0000000000..c9aa34e4db --- /dev/null +++ b/config/external/rlbox/rlbox_config.h @@ -0,0 +1,30 @@ +/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef RLBOX_CONFIG +#define RLBOX_CONFIG + +#include "mozilla/Assertions.h" + +// All uses of rlbox's function and callbacks invocations are on a single +// thread right now, so we disable rlbox thread checks for performance +// See (Bug 1739298) for more details +#define RLBOX_SINGLE_THREADED_INVOCATIONS + +#define RLBOX_CUSTOM_ABORT(msg) MOZ_CRASH_UNSAFE_PRINTF("RLBox crash: %s", msg) + +// The MingW compiler does not correctly handle static thread_local inline +// members. This toggles a workaround that allows the host application (firefox) +// to provide TLS storage via functions. This can be removed if the MingW bug is +// fixed. +#define RLBOX_EMBEDDER_PROVIDES_TLS_STATIC_VARIABLES + +// When instantiating a wasm sandbox, rlbox requires the name of the wasm module +// being instantiated. LLVM and wasm2c use the module name by choosing the name +// used to generate the wasm file. In Firefox this is a static library called +// rlbox +#define RLBOX_WASM2C_MODULE_NAME rlbox + +#endif |