Skip to content

Commit

Permalink
next test
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 1, 2024
1 parent 653e34a commit f520683
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions android/compile.v
Original file line number Diff line number Diff line change
Expand Up @@ -359,13 +359,10 @@ pub fn compile(opt CompileOptions) ! {
ldflags << ['-llog', '-landroid', '-lm']
ldflags << ['-shared'] // <- Android loads native code via a library in NativeActivity

mut cflags_arm64 := ['-m64', '-mfpu=neon-vfpv4']
mut cflags_arm32 := ['-mfloat-abi=softfp', '-mfpu=neon-vfpv4', '-m32']
mut cflags_x86 := ['-march=i686', '-mssse3', '-mfpmath=sse', '-mfpu=neon-vfpv4', '-m32']
mut cflags_x86_64 := ['-march=x86-64', '-msse4.2', '-mpopcnt', '-m64', '-mfpu=neon-vfpv4']
$if gcc {
cflags_arm32 << '-mfp16-format=ieee'
}
mut cflags_arm64 := ['-m64']
mut cflags_arm32 := ['-mfloat-abi=softfp', '-m32']
mut cflags_x86 := ['-march=i686', '-mssse3', '-mfpmath=sse', '-m32']
mut cflags_x86_64 := ['-march=x86-64', '-msse4.2', '-mpopcnt', '-m64']

mut arch_cc := map[string]string{}
mut arch_libs := map[string]string{}
Expand Down Expand Up @@ -686,7 +683,11 @@ pub fn compile_v_imports_c_dependencies(opt CompileOptions, imported_modules []s
if opt.verbosity > 1 {
println('Compiling stb_image (${arch}) via stbi module')
}
$if x32 || arm32 {
cflags << '-mfpu=neon-vfpv4',
}

dump(arch)
o_file := os.join_path(arch_o_dir, 'stbi.o')
build_cmd := [
compiler,
Expand Down

0 comments on commit f520683

Please sign in to comment.