1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 if CONFIG["MOZ_RUST_SIMD"]:
10 features += ["simd-accel"]
12 if CONFIG["FUZZING_INTERFACES"]:
13 features += ["gluesmith"]
15 if CONFIG["JS_ENABLE_SMOOSH"]:
16 features += ["smoosh"]
18 if CONFIG["MOZ_MEMORY"]:
19 features += ["moz_memory"]
21 if CONFIG["MOZ_ICU4X"]:
24 RustLibrary("jsrust", features)
26 if CONFIG["JS_SHARED_LIBRARY"]:
29 if CONFIG["OS_ARCH"] == "Darwin":
30 # The Rust standard library references libresolv on macOS, so we need to
31 # link it as a workaround. See also bug 1367932.
32 OS_LIBS += ["-lresolv"]
33 elif CONFIG["OS_ARCH"] == "WINNT":
34 # Extra libraries used by Rust bindings libs in debug builds.