mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Auto merge of #11378 - mbrubeck:debug-mozjs, r=larsbergstrom
Default to the same Cargo features in all build commands Fixes #8308 and #7327. r? @larsbergstrom <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11378) <!-- Reviewable:end -->
This commit is contained in:
commit
2d4941660b
3 changed files with 17 additions and 2 deletions
|
@ -418,6 +418,13 @@ class CommandBase(object):
|
|||
def servo_crate(self):
|
||||
return path.join(self.context.topdir, "components", "servo")
|
||||
|
||||
def servo_features(self):
|
||||
"""Return a list of optional features to enable for the Servo crate"""
|
||||
features = []
|
||||
if self.config["build"]["debug-mozjs"]:
|
||||
features += ["script/debugmozjs"]
|
||||
return features
|
||||
|
||||
def android_support_dir(self):
|
||||
return path.join(self.context.topdir, "support", "android")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue