MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / generate

Function generate

builders/rustc.py:35–45  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

33 return (target, source)
34
35def generate(env):
36 env['RUSTC'] = _detect(env)
37 env['RUSTCFLAGS'] = []
38
39 rust_cargo_builder = Builder(
40 action='"$RUSTC" $RUSTCFLAGS -o $TARGET $SOURCE',
41 suffix='$PROGSUFFIX',
42 src_suffix='.rs',
43 emitter=rustc_emitter,
44 )
45 env.Append(BUILDERS={'rustc': rust_cargo_builder})

Callers

nothing calls this directly

Calls 1

_detectFunction · 0.70

Tested by

no test coverage detected