Skip to content

Commit

Permalink
Add --no-scm configure option to bypass SCM detection
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 committed Apr 13, 2014
1 parent 6fce95c commit 9f294c2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wscript
Expand Up @@ -313,6 +313,9 @@ def options(opt):
opt.load('compiler_cxx')
opt.load('intltool')

# Option
opt.add_option('--no-scm', action='store_true', default=False,
help='Disable SCM detection [default: No]', dest='no_scm')
# Features
opt.add_option('--disable-plugins', action='store_true', default=False,
help='compile without plugin support [default: No]', dest='no_plugins')
Expand Down Expand Up @@ -714,6 +717,9 @@ def _define_from_opt(conf, define_name, opt_value, default_value, quote=1):


def _get_git_rev(conf):
if conf.options.no_scm:
return

if not os.path.isdir('.git'):
return

Expand Down

0 comments on commit 9f294c2

Please sign in to comment.