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

Function has_substr

emcmake.py:30–31  ·  view source on GitHub ↗
(args, substr)

Source from the content-addressed store, hash-verified

28 args = sys.argv[1:]
29
30 def has_substr(args, substr):
31 return any(substr in s for s in args)
32
33 # Append the Emscripten toolchain file if the user didn't specify one.
34 if not has_substr(args, '-DCMAKE_TOOLCHAIN_FILE') and 'CMAKE_TOOLCHAIN_FILE' not in os.environ:

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected