From 1763d82c2db31a92b3c9d84a4f97577e1f3f8511 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sun, 20 Jun 2021 13:11:44 +0800 Subject: [PATCH] Fix MODULE_NAME (#754) --- core/build.gradle.kts | 1 + core/src/main/cpp/main/src/main.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/build.gradle.kts b/core/build.gradle.kts index f06a75d7..a689a5d8 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -90,6 +90,7 @@ android { ndkBuild { arguments += "RIRU_MODULE_API_VERSION=$moduleMaxRiruApiVersion" arguments += "MODULE_NAME=$riruModuleId" + arguments += "-j${Runtime.getRuntime().availableProcessors()}" } } diff --git a/core/src/main/cpp/main/src/main.cpp b/core/src/main/cpp/main/src/main.cpp index f4568b7c..7f82d3bc 100644 --- a/core/src/main/cpp/main/src/main.cpp +++ b/core/src/main/cpp/main/src/main.cpp @@ -115,7 +115,8 @@ namespace lspd { }; } -#define str(s) #s +#define quote(s) #s +#define str(s) quote(s) RIRU_EXPORT RiruVersionedModuleInfo *init(Riru *riru) { LOGD("using riru %d", riru->riruApiVersion);