Skip to content

Commit

Permalink
Prefer ninja for Android CMAKE compilation by default it might also f…
Browse files Browse the repository at this point in the history
…ix web builds.
  • Loading branch information
RevoluPowered committed Jul 5, 2024
1 parent 7b5fff2 commit 95058d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/jolt/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Import("env_modules")
compiler = ""
jolt_build_dir = os.path.join(".", "thirdparty", "JoltPhysics", "Build")
out_build_dir = "JOLT_BUILD"
cmake_generator_type = ""
cmake_generator_type = "Ninja"
cpu_count = multiprocessing.cpu_count()

cmake_opts = ""
Expand Down Expand Up @@ -110,7 +110,7 @@ elif env["platform"] == "android":
cmake_platform_opts += ' -DANDROID_PLATFORM=' + env["ndk_platform"]
cmake_platform_opts += ' -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang'
cmake_platform_opts += ' -DCMAKE_CXX_FLAGS="-fPIC"'
cmake_generator_type = '"Unix Makefiles"'
# cmake_generator_type = '"Unix Makefiles"'

elif env["platform"] == "windows":
cmake_generator_type = "Ninja"
Expand Down

0 comments on commit 95058d1

Please sign in to comment.