From f52068368a8b18239b3556be4d43c465f7a8e607 Mon Sep 17 00:00:00 2001 From: Turiiya <34311583+ttytm@users.noreply.github.com> Date: Mon, 1 Apr 2024 06:34:49 +0200 Subject: [PATCH] next test --- android/compile.v | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/android/compile.v b/android/compile.v index 29eff77f..fd40dd3a 100644 --- a/android/compile.v +++ b/android/compile.v @@ -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{} @@ -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,