MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / escape_ninja_path

Function escape_ninja_path

tools/system_libs.py:185–190  ·  view source on GitHub ↗

Escape a path to be used in a ninja file.

(path)

Source from the content-addressed store, hash-verified

183
184
185def escape_ninja_path(path):
186 """Escape a path to be used in a ninja file."""
187 # Replace Windows backslashes with forward slashes.
188 path = path.replace('\\', '/')
189 # Escape special Ninja chars.
190 return re.sub(r'([ :$])', r'$\1', path)
191
192
193def create_ninja_file(input_files, filename, libname, cflags, asflags=None, customize_build_flags=None):

Callers 1

create_ninja_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected