Lines Matching +full:cross +full:- +full:spawn
8 from distutils.spawn import spawn
23 link steps -- include directories, macros to define, libraries to link
24 against, etc. -- are attributes of the compiler instance. To allow for
26 attributes may be varied on a per-compilation or per-link basis.
34 # dictionary (see below -- used by the 'new_compiler()' factory
35 # function) -- authors of new compiler interface classes are
43 # (UnixCCompiler, MSVCCompiler, etc.) -- or perhaps the base
46 # path, ie. no "cc -I -Idir1 -Idir2" or "cc -L -Ldir1 -Ldir2".
49 # sure how useful it is; maybe for cross-compiling, but
50 # support for that is a ways off. (And anyways, cross
54 # dirs, e.g. "-Ldir1 -lfoo -Ldir2 -lfoo" to link against
95 # macro definition is a 2-tuple (name, value), where the value is
97 # undefinition is a 1-tuple (name,).
131 On platforms with a command-line (Unix, DOS/Windows), each of these
140 # attributes 'cpp', 'cc', etc. with hard-coded executable names;
144 # discovered at run-time, since there are many different ways to do
169 definition, ie. either (name,value) 2-tuple or a (name,) tuple. Do
182 # -- Bookkeeping methods -------------------------------------------
205 per-compilation basis (ie. in the call to 'compile()'), then that
305 # -- Private utility methods --------------------------------------
355 cc_args = pp_opts + ['-c']
357 cc_args[:0] = ['-g']
363 """Typecheck and fix-up some of the arguments to the 'compile()'
364 method, and return fixed-up values. Specifically: if 'output_dir'
495 # -- Worker methods ------------------------------------------------
532 definition is either a (name, value) 2-tuple or a (name,) 1-tuple.
534 defined without an explicit value. The 1-tuple case undefines a
545 'extra_preargs' and 'extra_postargs' are implementation- dependent.
546 On platforms that have the notion of a command-line (e.g. Unix,
548 command-line arguments to prepend/append to the compiler command
642 filenames in a platform-specific way (eg. "foo" becomes "libfoo.a"
654 run-time. (This may only be relevant on Unix.)
665 of course that they supply command-line arguments for the
737 # -- Miscellaneous methods -----------------------------------------
767 # import math which might not be available at that point - maybe
813 # -- Filename generation methods -----------------------------------
818 # (eg. .c/.cpp -> .o/.obj)
829 # * src_extensions -
831 # * obj_extension -
833 # * static_lib_extension -
835 # * shared_lib_extension -
837 # * static_lib_format -
844 # * exe_extension -
893 # -- Utility methods -----------------------------------------------
909 def spawn(self, cmd): member in CCompiler
910 spawn(cmd, dry_run=self.dry_run)
958 # Map compiler types to (module_name, class_name) pairs -- ie. where to
962 "standard UNIX-style compiler"),
974 """Print list of available compilers (used by the "--help-compiler"
978 # "--compiler", which just happens to be the case for the three
998 Microsoft compiler object under Unix -- if you supply a value for
1036 """Generate C pre-processor options (-D, -U, -I) as used by at least
1038 'macros' is the usual thing, a list of 1- or 2-tuples, where (name,)
1039 means undefine (-U) macro 'name', and (name,value) means define (-D)
1041 names to be added to the header file search path (-I). Returns a list
1042 of command-line options suitable for either Unix compilers or Visual
1046 # stupid-looking command lines) to go over 'macros' and eliminate
1050 # Unix C compilers only pay attention to the latest -D or -U
1061 "each element of 'macros' list must be a 1- or 2-tuple"
1065 pp_opts.append("-U%s" % macro[0])
1068 pp_opts.append("-D%s" % macro[0])
1072 # shell at all costs when we spawn the command!
1073 pp_opts.append("-D%s=%s" % macro)
1076 pp_opts.append("-I%s" % dir)
1084 directories. Returns a list of command-line options suitable for use
1100 # sometimes you really do have to say "-lfoo -lbar -lfoo" in order to
1101 # resolve all symbols. I just hope we never have to say "-lfoo obj.o
1102 # -lbar" to get things to work -- that's certainly a possibility, but a