mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
13 lines
236 B
V
13 lines
236 B
V
import os
|
|
import v.gen.native
|
|
import v.pref
|
|
|
|
fn test_macho() {
|
|
os.chdir(os.temp_dir()) or {}
|
|
mut g := native.macho_test_new_gen(&pref.Preferences{
|
|
arch: .amd64
|
|
}, 'test.bin')
|
|
g.generate_macho_header()
|
|
g.generate_macho_footer()
|
|
}
|