Skip to content

Commit 593507f

Browse files
committed
Shorten Windows CMake object paths
1 parent d41f262 commit 593507f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

example/android/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,15 @@ allprojects {
4242
}
4343
}
4444

45+
subprojects { subproject ->
46+
subproject.plugins.withId("com.android.application") {
47+
if (System.getProperty("os.name").toLowerCase().contains("windows")) {
48+
subproject.android.defaultConfig.externalNativeBuild.cmake.arguments(
49+
"-DCMAKE_OBJECT_PATH_MAX=128"
50+
)
51+
}
52+
}
53+
}
54+
4555
rootProject.ext.set("react.compileSdkVersion", 36)
4656
rootProject.ext.set("react.targetSdkVersion", 36)

0 commit comments

Comments
 (0)