diff options
author | Gabriel Poesia <gabriel.poesia@gmail.com> | 2016-06-30 00:05:56 -0300 |
---|---|---|
committer | Gabriel Poesia <gabriel.poesia@gmail.com> | 2016-06-30 00:15:50 -0300 |
commit | a1a1dec4d538f293577ca6e30f0f32003c519bf4 (patch) | |
tree | 1fb1495bac04acf6afd00682d25397095908d5a6 /python/servo/build_commands.py | |
parent | e30b288ed638f1903d30c8c5402b93b77b76b7b4 (diff) | |
download | servo-a1a1dec4d538f293577ca6e30f0f32003c519bf4.tar.gz servo-a1a1dec4d538f293577ca6e30f0f32003c519bf4.zip |
Add mach build-stable to build with stable rustc
Github issue: #11806
Building with current stable rust (1.9.0) still fails because of
feature pragmas in some dependencies (e.g. serde_item).
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r-- | python/servo/build_commands.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 1d4931dc78c..f43f234a3a2 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -265,6 +265,43 @@ class MachCommands(CommandBase): print("Build completed in %s" % format_duration(elapsed)) return status + @Command('build-stable', + description='Build Servo using stable rustc', + category='build') + @CommandArgument('--target', '-t', + default=None, + help='Cross compile for given target platform') + @CommandArgument('--release', '-r', + action='store_true', + help='Build in release mode') + @CommandArgument('--dev', '-d', + action='store_true', + help='Build in development mode') + @CommandArgument('--jobs', '-j', + default=None, + help='Number of jobs to run in parallel') + @CommandArgument('--features', + default=None, + help='Space-separated list of features to also build', + nargs='+') + @CommandArgument('--android', + default=None, + action='store_true', + help='Build for Android') + @CommandArgument('--debug-mozjs', + default=None, + action='store_true', + help='Enable debug assertions in mozjs') + @CommandArgument('--verbose', '-v', + action='store_true', + help='Print verbose output') + @CommandArgument('params', nargs='...', + help="Command-line arguments to be passed through to Cargo") + def build_stable(self, target=None, release=False, dev=False, jobs=None, + features=None, android=None, verbose=False, debug_mozjs=False, params=None): + self.set_use_stable_rust() + self.build(target, release, dev, jobs, features, android, verbose, debug_mozjs, params) + @Command('build-cef', description='Build the Chromium Embedding Framework library', category='build') |