Browse Source

Use lld linker when linking everything.

Miku AuahDark 4 years ago
parent
commit
f507d58891
2 changed files with 2 additions and 2 deletions
  1. 1 1
      love/build.gradle
  2. 1 1
      love/src/jni/Application.mk

+ 1 - 1
love/build.gradle

@@ -17,7 +17,7 @@ android {
         resValue 'bool', 'embed', 'false'
         resValue 'bool', 'embed', 'false'
         externalNativeBuild {
         externalNativeBuild {
             ndkBuild {
             ndkBuild {
-                arguments "-j4"
+                arguments "-j" + Runtime.runtime.availableProcessors()
             }
             }
         }
         }
         ndk {
         ndk {

+ 1 - 1
love/src/jni/Application.mk

@@ -4,7 +4,7 @@
 APP_STL := c++_shared
 APP_STL := c++_shared
 APP_ABI := armeabi-v7a
 APP_ABI := armeabi-v7a
 APP_CPPFLAGS := -frtti
 APP_CPPFLAGS := -frtti
-APP_LDFLAGS := -llog -landroid -lz
+APP_LDFLAGS := -llog -landroid -lz -fuse-ld=lld
 APP_PLATFORM := 10
 APP_PLATFORM := 10
 NDK_TOOLCHAIN_VERSION := clang
 NDK_TOOLCHAIN_VERSION := clang