removing C code, opting to mess around in odin.

This commit is contained in:
2025-06-15 16:32:43 -04:00
parent a54f4b0b57
commit 06212960ce
15 changed files with 164 additions and 562 deletions

View File

@ -1,22 +1,41 @@
$misc = join-path $PSScriptRoot 'helpers/misc.ps1'
. $misc
$path_root = split-path -Path $PSScriptRoot -Parent
$path_build = join-path $path_root 'build'
$path_code = join-path $path_root 'code'
$update_deps = join-path $PSScriptRoot 'update_deps.ps1'
. $update_deps
$path_source = join-path $PSScriptRoot 'build.odin'
$exe = join-path $path_build 'build_win32.exe'
$path_root = git rev-parse --show-toplevel
$path_build = join-path $path_root 'build'
$path_scripts = join-path $path_root 'scripts'
$path_source = join-path $path_root 'source'
$path_toolchain = join-path $path_root 'toolchain'
if ((test-path $path_build) -eq $false) {
new-item -itemtype directory -path $path_build
}
verify-path $path_build
push-location $path_build
function build-hello {
}
build-hello
$odin = 'odin.exe'
function build-copy_hello {
}
# build-copy_hello
$command_build = 'build'
$flag_debug = '-debug'
$flag_file = '-file'
$flag_dyn_map_calls = '-dynamic-map-calls'
$flag_no_bounds_check = '-no-bounds-check'
$flag_no_threaded_checker = '-no-threaded-checker'
$flag_no_type_assert = '-no-type-assert'
$flag_optimize_none = '-o:none'
$flag_output_path = '-out='
$flag_default_allocator_nil = '-default-to-nil-allocator'
push-location $path_root
$build_args = @()
$build_args += $command_build
$build_args += $path_source
$build_args += $flag_file
# $build_args += $flag_debug
$build_args += $flag_optimize_none
$build_args += $flag_no_bounds_check
$build_args += $flag_no_threaded_checker
$build_args += $flag_no_type_assert
$build_args += $flag_dyn_map_calls
$build_args += $flag_default_allocator_nil
$build_args += $flag_output_path + $exe
& $odin $build_args
& $exe
pop-location