mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
- RPCS3 still uses C++20 which no longer needs recent Clang/libc++ - FreeBSD releases more frequently, bringing newer Clang/libc++ - bundled libc++ wastes too much limited CI time
27 lines
724 B
Bash
Executable file
27 lines
724 B
Bash
Executable file
#!/bin/sh -ex
|
|
|
|
# Pull all the submodules except llvm and opencv
|
|
# Note: Tried to use git submodule status, but it takes over 20 seconds
|
|
# shellcheck disable=SC2046
|
|
git submodule -q update --init --depth 1 $(awk '/path/ && !/llvm/ && !/opencv/ { print $3 }' .gitmodules)
|
|
|
|
CONFIGURE_ARGS="
|
|
-DWITH_LLVM=ON
|
|
-DUSE_SDL=OFF
|
|
-DUSE_PRECOMPILED_HEADERS=OFF
|
|
-DUSE_NATIVE_INSTRUCTIONS=OFF
|
|
-DUSE_SYSTEM_FFMPEG=ON
|
|
-DUSE_SYSTEM_CURL=ON
|
|
-DUSE_SYSTEM_LIBPNG=ON
|
|
-DUSE_SYSTEM_OPENCV=ON
|
|
"
|
|
|
|
# base Clang workaround (missing clang-scan-deps)
|
|
CONFIGURE_ARGS="$CONFIGURE_ARGS -DCMAKE_CXX_SCAN_FOR_MODULES=OFF"
|
|
|
|
# shellcheck disable=SC2086
|
|
cmake -B build -G Ninja $CONFIGURE_ARGS
|
|
cmake --build build
|
|
|
|
ccache --show-stats
|
|
ccache --zero-stats
|