Skip to content

Commit

Permalink
android: add cflag -mfpu=neon-vfpv4 (needed for the stbi import) (#278
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ttytm authored Apr 1, 2024
1 parent f129610 commit 955e1a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/compile.v
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,12 @@ 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 arch == 'armeabi-v7a' {
cflags << '-mfpu=neon-vfpv4'
$if gcc {
cflags << '-mfp16-format=ieee'
}
}

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

0 comments on commit 955e1a4

Please sign in to comment.