• Home
  • Raw
  • Download

Lines Matching +full:- +full:wno +full:- +full:unused +full:- +full:command +full:- +full:line +full:- +full:argument

9 #     http://www.apache.org/licenses/LICENSE-2.0
20 or use a meta-build system that supports Ninja output."""
120 Used to bootstrap Ninja from scratch. In --bootstrap mode this
123 behave like non-bootstrap mode.
153 cmd = ruleattr.get('command')
187 """Run a subcommand, quietly. Prints the full command on error."""
199 parser.add_option('--bootstrap', action='store_true',
201 parser.add_option('--verbose', action='store_true',
203 parser.add_option('--platform',
207 parser.add_option('--host',
211 parser.add_option('--debug', action='store_true',
213 parser.add_option('--profile', metavar='TYPE',
216 parser.add_option('--with-gtest', metavar='PATH', help='ignored')
217 parser.add_option('--with-python', metavar='EXE',
220 parser.add_option('--force-pselect', action='store_true',
225 print('ERROR: extra unparsed command-line arguments:', args)
258 if '--bootstrap' in configure_args:
259 configure_args.remove('--bootstrap')
295 # tree, simplify all the paths to just be cwd-relative.
316 raise Exception('cl.exe not found. Run again from the Developer Command Prompt for VS')
330 '/GR-', # Disable RTTI.
332 # Disable size_t -> int truncation warning.
345 cflags = ['-g', '-Wall', '-Wextra',
346 '-Wno-deprecated',
347 '-Wno-missing-field-initializers',
348 '-Wno-unused-parameter',
349 '-fno-rtti',
350 '-fno-exceptions',
351 '-std=c++11',
352 '-fvisibility=hidden', '-pipe',
353 '-DNINJA_PYTHON="%s"' % options.with_python]
355 cflags += ['-D_GLIBCXX_DEBUG', '-D_GLIBCXX_DEBUG_PEDANTIC']
356 cflags.remove('-fno-rtti') # Needed for above pedanticness.
358 cflags += ['-O2', '-DNDEBUG']
361 [CXX, '-fdiagnostics-color', '-c', '-x', 'c++', '/dev/null',
362 '-o', '/dev/null'],
365 cflags += ['-fdiagnostics-color']
369 cflags += ['-D_WIN32_WINNT=0x0601', '-D__USE_MINGW_ANSI_STDIO=1']
370 ldflags = ['-L$builddir']
372 cflags.append('-I/usr/local/include')
373 ldflags.append('-L/usr/local/lib')
376 cflags.append('-D__STDC_FORMAT_MACROS')
377 cflags.append('-D_LARGE_FILES')
383 cflags.remove('-fvisibility=hidden');
384 ldflags.append('-static')
386 cflags.remove('-fvisibility=hidden')
388 cflags.remove('-fvisibility=hidden')
393 cflags.append('-pg')
394 ldflags.append('-pg')
396 cflags.append('-fno-omit-frame-pointer')
397 libs.extend(['-Wl,--no-as-needed', '-lprofiler'])
400 cflags.append('-DUSE_PPOLL')
402 cflags.append('-DNINJA_HAVE_BROWSE')
405 cflags.append('-I.')
408 """Escape str such that it's interpreted as a single argument by
432 command='$cxx $cflags -c $in /Fo$out /Fd' + built('$pdb'),
438 command='$cxx -MMD -MT $out -MF $out.d $cflags -c $in -o $out',
446 command='lib /nologo /ltcg /out:$out $in',
450 command='$ar crs $out $in',
454 command='rm -f $out && $ar crs $out $in',
460 command='$cxx $in $libs /nologo /link $ldflags /out:$out',
464 command='$cxx $ldflags -o $out $in $libs',
473 command='"%s"' % src('inline.sh') + ' $varname < $in > $out',
486 proc = subprocess.Popen(['re2c', '-V'], stdout=subprocess.PIPE)
492 command='re2c -b -i --no-generation-date --no-version -o $out $in',
506 n.comment('Generate a library for `ninja-re2c`.')
511 n.build(built('ninja-re2c.lib'), 'ar', re2c_objs)
513 n.build(built('libninja-re2c.a'), 'ar', re2c_objs)
544 for name in ['subprocess-win32',
545 'includes_normalize-win32',
546 'msvc_helper-win32',
547 'msvc_helper_main-win32']:
550 objs += cxx('minidump-win32', variables=cxxvariables)
553 objs += cxx('subprocess-posix')
565 libs.append('-lninja')
568 libs.append('-lperfstat')
587 if platform.is_aix() and '-maix64' not in ldflags:
589 # memory than will fit in the standard 32-bit AIX shared stack/heap (256M)
590 libs.append('-Wl,-bmaxdata:0x80000000')
608 command='./ninja -t graph all > $out')
610 command='dot -Tpng $in > $out')
617 command='asciidoc -b docbook -d book -o $out $in',
620 command='xsltproc --nonet doc/docbook.xsl $in > $out',
630 command='dblatex -q -o $out -p doc/dblatex.xsl $in',
637 command='doxygen $in',
642 command='$doxygen_mainpage_generator $in > $out',
654 command='${configure_env}%s $root/configure.py $configure_args' %
668 command="misc/packaging/rpmbuild.sh",
700 rebuild_args.append('-v')