ppmd.lib.compiler module¶
-
class
ppmd.lib.compiler.
Compiler
(name, binary, c_flags, l_flags, opt_flags, dbg_flags, compile_flag, shared_lib_flag, restrict_keyword='', cfg_hash='')¶ Bases:
object
Container to define different compilers.
- Parameters
name (str) – Compiler name, referance only.
binary (str) – Name(+path) of Compiler binary.
c_flags (list) – List of compile flags as strings.
l_flags (list) – List of link flags as strings.
opt_flags (list) – List of optimisation flags.
dbg_flags (list) – List of runtime.DEBUG flags as strings.
compile_flag (list) – List of compile flag as single string (eg [‘-c’]
for gcc). :arg list shared_lib_flag: List of flags as strings to link as shared library. :arg string restrict_keyword: keyword to use for non aliased pointers :arg cfg_hash: Hash to use for this compiler
-
add_cflag
(entry)¶
-
property
binary
¶ Return Compiler binary.
-
property
c_flags
¶ Return Compiler compile flags
-
property
compile_flag
¶ Return Compiler compile flag.
-
property
dbg_flags
¶ Return Compiler runtime.DEBUG flags
-
property
hash
¶
-
property
l_flags
¶ Return Compiler link flags
-
property
name
¶ Return Compiler name.
-
property
opt_flags
¶ Return Compiler runtime.DEBUG flags
-
property
restrict_keyword
¶
Return Compiler link as shared library flag.