add new and init to toolchain
This commit is contained in:
@@ -33,6 +33,7 @@ compile_package :: proc(
|
||||
link_arguments: []linker.Argument = nil,
|
||||
selected := target.DEFAULT,
|
||||
c_options := cimport.Options{},
|
||||
project_root := "",
|
||||
) -> int {
|
||||
sources := source.init_store()
|
||||
defer source.destroy_store(&sources)
|
||||
@@ -75,6 +76,7 @@ compile_package :: proc(
|
||||
vmem.arena_allocator(&parser_arena),
|
||||
c_options,
|
||||
selected,
|
||||
project_root if len(project_root) > 0 else input_path,
|
||||
)
|
||||
if !loaded {
|
||||
source.print_all(&diagnostics)
|
||||
|
||||
Reference in New Issue
Block a user