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);