MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / set_current_source_path

Method set_current_source_path

src/compilation_pipeline.rs:324–326  ·  view source on GitHub ↗

Set the filesystem path of the source currently being compiled. Relative `import("./x.hll")` and `import("../x.hll")` resolve against this file's directory.

(&mut self, path: Option<impl Into<PathBuf>>)

Source from the content-addressed store, hash-verified

322 pub fn set_module_resolver(&mut self, resolver: Option<ModuleResolver>) {
323 self.module_resolver = resolver;
324 }
325
326 /// Enable or disable per-module symbol mangling in `compile_program_closure` (default on).
327 /// The kernel disables it: its inline asm names HLL symbols literally and it links flat.
328 pub fn set_module_mangling(&mut self, enabled: bool) {
329 self.mangle_in_closure = enabled;

Callers 7

buildMethod · 0.80
cmd_hll_to_irFunction · 0.80
cmd_hll_to_asmFunction · 0.80
compileMethod · 0.80

Calls

no outgoing calls