some setup
This commit is contained in:
3
code/asm.odin
Normal file
3
code/asm.odin
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package asmd // ASM Duffle
|
||||||
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
package yasm
|
package asmd
|
||||||
|
|
||||||
|
|
||||||
main :: proc()
|
main :: proc()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
3
code/pkg_mappings.odin
Normal file
3
code/pkg_mappings.odin
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package asmd
|
||||||
|
|
||||||
|
|
@ -64,7 +64,8 @@ flag_show_more_timings :: "-show-more-timings"
|
|||||||
flag_show_system_calls :: "-show-system-calls"
|
flag_show_system_calls :: "-show-system-calls"
|
||||||
flag_target :: "-target:"
|
flag_target :: "-target:"
|
||||||
flag_thread_count :: "-thread-count:"
|
flag_thread_count :: "-thread-count:"
|
||||||
flag_use_lld :: "-lld"
|
flag_use_lld :: "-linker:lld"
|
||||||
|
flag_use_rad_link :: "-linker:radlink"
|
||||||
flag_use_separate_modules :: "-use-separate-modules"
|
flag_use_separate_modules :: "-use-separate-modules"
|
||||||
flag_vet_all :: "-vet"
|
flag_vet_all :: "-vet"
|
||||||
flag_vet_unused_entities :: "-vet-unused"
|
flag_vet_unused_entities :: "-vet-unused"
|
||||||
@ -74,8 +75,6 @@ flag_vet_using_stmt :: "-vet-using-stmt"
|
|||||||
|
|
||||||
flag_microarch_zen5 :: "--microarch:znver5"
|
flag_microarch_zen5 :: "--microarch:znver5"
|
||||||
|
|
||||||
flag_rad_linker :: "-radlink"
|
|
||||||
|
|
||||||
flag_msvc_link_disable_dynamic_base :: "/DYNAMICBASE:NO"
|
flag_msvc_link_disable_dynamic_base :: "/DYNAMICBASE:NO"
|
||||||
flag_msvc_link_base_address :: "/BASE:"
|
flag_msvc_link_base_address :: "/BASE:"
|
||||||
flag_msvc_link_fixed_base_address :: "/FIXED"
|
flag_msvc_link_fixed_base_address :: "/FIXED"
|
||||||
@ -98,8 +97,8 @@ main :: proc() {
|
|||||||
path_root := get_working_dir()
|
path_root := get_working_dir()
|
||||||
path_build := join_path(path_root, "build")
|
path_build := join_path(path_root, "build")
|
||||||
path_code := join_path(path_root, "code")
|
path_code := join_path(path_root, "code")
|
||||||
file_source := join_path(path_code, "yasm.odin")
|
file_source := join_path(path_code, "host.odin")
|
||||||
file_exe := join_path(path_build, "yasm.exe")
|
file_exe := join_path(path_build, "host.exe")
|
||||||
|
|
||||||
res, errs := build(path_build, {
|
res, errs := build(path_build, {
|
||||||
exe_odin,
|
exe_odin,
|
||||||
@ -111,9 +110,9 @@ main :: proc() {
|
|||||||
flag_default_allocator_nil,
|
flag_default_allocator_nil,
|
||||||
flag_debug,
|
flag_debug,
|
||||||
flag_microarch_zen5,
|
flag_microarch_zen5,
|
||||||
flag_rad_linker,
|
|
||||||
flag_no_thread_checker,
|
flag_no_thread_checker,
|
||||||
flag_show_timings,
|
flag_show_timings,
|
||||||
|
flag_use_rad_link,
|
||||||
join_str(flag_subsystem, "console"),
|
join_str(flag_subsystem, "console"),
|
||||||
})
|
})
|
||||||
fmt.println(res)
|
fmt.println(res)
|
||||||
|
@ -36,6 +36,6 @@ $build_args += $flag_no_type_assert
|
|||||||
$build_args += $flag_dyn_map_calls
|
$build_args += $flag_dyn_map_calls
|
||||||
$build_args += $flag_default_allocator_nil
|
$build_args += $flag_default_allocator_nil
|
||||||
$build_args += $flag_output_path + $exe
|
$build_args += $flag_output_path + $exe
|
||||||
& $odin $build_args
|
# & $odin $build_args
|
||||||
& $exe
|
& $exe
|
||||||
pop-location
|
pop-location
|
||||||
|
Reference in New Issue
Block a user