Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
build: make gyp_uv understand '-f ninja'
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Sep 7, 2012
1 parent 3bbe8f9 commit 817b6c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gyp_uv
Expand Up @@ -60,9 +60,11 @@ if __name__ == '__main__':

# There's a bug with windows which doesn't allow this feature.
if sys.platform != 'win32':
args.extend(['--generator-output', output_dir])
args.extend(['-Goutput_dir=' + output_dir])
args.extend('-f make'.split())
if '-f' not in args:
args.extend('-f make'.split())
if 'ninja' not in args:
args.extend(['-Goutput_dir=' + output_dir])
args.extend(['--generator-output', output_dir])
(major, minor), is_clang = compiler_version()
args.append('-Dgcc_version=%d' % (10 * major + minor))
args.append('-Dclang=%d' % int(is_clang))
Expand Down

0 comments on commit 817b6c3

Please sign in to comment.