MCPcopy Create free account
hub / github.com/cztomczak/cefpython / get_compiler

Function get_compiler

tools/build_cpp_projects.py:110–122  ·  view source on GitHub ↗
(static=False)

Source from the content-addressed store, hash-verified

108
109
110def get_compiler(static=False):
111 # NOTES:
112 # - VS2008 and VS2010 are both using distutils/msvc9compiler.py
113 compiler = new_compiler()
114 # Must initialize so that "compile_options" and others are available
115 compiler.initialize()
116 if static:
117 compiler.compile_options.remove("/MD")
118 # Overwrite function that adds /MANIFESTFILE, as for subprocess
119 # manifest is disabled. Otherwise warning LNK4075 is generated.
120 if hasattr(compiler, "manifest_setup_ldargs"):
121 compiler.manifest_setup_ldargs = lambda *_: None
122 return compiler
123
124
125def build_library(lib_name, macros, output_dir,

Callers 3

print_compiler_optionsFunction · 0.85
build_libraryFunction · 0.85

Calls 1

initializeMethod · 0.80

Tested by

no test coverage detected