Skip to content

Commit

Permalink
andorid: add cflag to stbi import
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Mar 28, 2024
1 parent 6b63ca6 commit 7f81b68
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions android/compile.v
Original file line number Diff line number Diff line change
Expand Up @@ -688,9 +688,10 @@ pub fn compile_v_imports_c_dependencies(opt CompileOptions, imported_modules []s
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') + '"',
'-I"${os.join_path(v_thirdparty_dir, 'stb_image')}"',
'-c "${os.join_path(v_thirdparty_dir, 'stb_image', 'stbi.c')}"',
'-o "${o_file}"',
]

Expand Down

0 comments on commit 7f81b68

Please sign in to comment.