Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
atbrakhi committed Nov 28, 2023
1 parent 5d75603 commit 82644b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mozjs-sys/mozjs/config/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ endif
ifeq ($(OS_ARCH),Darwin)
ifneq (,$(SHARED_LIBRARY))
_LOADER_PATH := @rpath
EXTRA_DSO_LDOPTS += -undefined dynamic_lookup -dynamiclib -install_name $(_LOADER_PATH)/$@ -compatibility_version 1 -current_version 1
EXTRA_DSO_LDOPTS += -undefined dynamic_lookup -dynamiclib -install_name $(_LOADER_PATH)/$@ -compatibility_version 1 -current_version 1
endif
endif

Expand Down
14 changes: 14 additions & 0 deletions mozjs-sys/mozjs/js/src/build/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ else:
Library("js")
USE_LIBS += ["mozglue"]

# We should remove this, we don't want both static and dynamic lib
FORCE_STATIC_LIB = True
STATIC_LIBRARY_NAME = "js_static"

if CONFIG["JS_HAS_INTL_API"]:
USE_LIBS += [
Expand Down Expand Up @@ -89,7 +92,18 @@ if CONFIG["MOZ_NEEDS_LIBATOMIC"]:

OS_LIBS += CONFIG["REALTIME_LIBS"]

NO_EXPAND_LIBS = True

DIST_INSTALL = True

# Run SpiderMonkey style checker after linking the static library. This avoids
# running the script for no-op builds.
GeneratedFile(
"spidermonkey_checks",
script="/config/run_spidermonkey_checks.py",
inputs=[
"!%sjs_static.%s" % (CONFIG["LIB_PREFIX"], CONFIG["LIB_SUFFIX"]),
"/config/check_macroassembler_style.py",
"/config/check_js_opcode.py",
],
)

0 comments on commit 82644b8

Please sign in to comment.