Skip to content

Commit f606f04

Browse files
committed
Add a cargo feature for profiling.
1 parent 49d63a8 commit f606f04

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mozjs_sys"
33
description = "System crate for the Mozilla SpiderMonkey JavaScript engine."
44
repository = "https://github.com/servo/mozjs/"
5-
version = "0.61.7"
5+
version = "0.61.8"
66
authors = ["Mozilla"]
77
links = "mozjs"
88
build = "build.rs"
@@ -17,6 +17,7 @@ exclude = [
1717

1818
[features]
1919
debugmozjs = []
20+
profilemozjs = []
2021

2122
[lib]
2223
name = "mozjs_sys"

makefile.cargo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ ifneq (,$(CARGO_FEATURE_DEBUGMOZJS))
9292
CONFIGURE_FLAGS += --enable-debug --disable-optimize --enable-gczeal
9393
endif
9494

95+
ifneq (,$(CARGO_FEATURE_PROFILEMOZJS))
96+
CONFIGURE_FLAGS += --enable-profiling
97+
endif
98+
9599
ifneq (,$(CCACHE))
96100
CONFIGURE_FLAGS += --with-ccache=$(CCACHE)
97101
endif

0 commit comments

Comments
 (0)