switching to nasm, yasm is dead from what I can tell, not caring about perf diff anymore.
This commit is contained in:
41
scripts/build_duff.ps1
Normal file
41
scripts/build_duff.ps1
Normal file
@ -0,0 +1,41 @@
|
||||
$path_root = split-path -Path $PSScriptRoot -Parent
|
||||
$path_build = join-path $path_root 'build'
|
||||
$path_code = join-path $path_root 'code'
|
||||
|
||||
$path_source = join-path $PSScriptRoot 'build.odin'
|
||||
$exe = join-path $path_build 'build_win32.exe'
|
||||
|
||||
if ((test-path $path_build) -eq $false) {
|
||||
new-item -itemtype directory -path $path_build
|
||||
}
|
||||
|
||||
$odin = 'odin.exe'
|
||||
|
||||
$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
|
Reference in New Issue
Block a user