Skip to content

Commit

Permalink
limit flag specifications to architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 1, 2024
1 parent a628e95 commit dd03728
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion android/compile.v
Original file line number Diff line number Diff line change
Expand Up @@ -683,12 +683,17 @@ 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 := [
compiler,
cflags.join(' '),
'-mfpu=neon-vfpv4',
'-Wno-sign-compare',
'-I"' + os.join_path(v_thirdparty_dir, 'stb_image') + '"',
'-c "' + os.join_path(v_thirdparty_dir, 'stb_image', 'stbi.c') + '"',
Expand Down

0 comments on commit dd03728

Please sign in to comment.