Skip to content

Commit e65b633

Browse files
committed
Fix submodule errors
1 parent d1e7fe4 commit e65b633

File tree

15 files changed

+85
-64
lines changed

15 files changed

+85
-64
lines changed

.ci/build-windows-clang-cl.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ fi
3030

3131
echo "Found llvm-mt.exe at: $mtPath"
3232

33-
VcpkgRoot="$(pwd)/vcpkg"
33+
VcpkgRoot="$VCPKG_ROOT"
34+
VcpkgBuildRoot="$GITHUB_WORKSPACE/build"
3435
VcpkgTriplet="$VCPKG_TRIPLET"
35-
VcpkgInstall="$VcpkgRoot/installed/$VcpkgTriplet"
36+
VcpkgInstall="$VcpkgBuildRoot/vcpkg_installed/$VcpkgTriplet"
3637
VcpkgInclude="$VcpkgInstall/include"
3738
VcpkgLib="$VcpkgInstall/lib"
3839

@@ -42,8 +43,10 @@ git config --global --add safe.directory '*'
4243

4344
# Initialize submodules except certain ones
4445
echo "Initializing submodules"
46+
set -x
4547
# shellcheck disable=SC2046
4648
git submodule -q update --init $(awk '/path/ && !/llvm/ && !/opencv/ && !/FAudio/ && !/libpng/ && !/zlib/ && !/feralinteractive/ { print $3 }' .gitmodules)
49+
set +x
4750

4851
# Create and enter build directory
4952
echo "Creating build directory"

.github/workflows/rpcs3.yml

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -344,12 +344,15 @@ jobs:
344344
CCACHE_DIR: 'C:\ccache'
345345
VCPKG_TRIPLET: x64-windows
346346
VCPKG_BUILD_TYPE: release
347+
VCPKG_ROOT: "${{github.workspace}}/vcpkg"
348+
VCPKG_BINARY_SOURCES: 'clear;nuget,GitHub,readwrite'
347349
name: RPCS3 Windows ${{ matrix.compiler }}
348350
steps:
349351
- name: Checkout repository
350352
uses: actions/checkout@main
351353
with:
352354
fetch-depth: 0
355+
353356
- name: Setup msys2
354357
uses: msys2/setup-msys2@v2
355358
if: ${{ matrix.compiler == 'clang' }}
@@ -386,42 +389,21 @@ jobs:
386389
run: |
387390
git clone https://github.com/microsoft/vcpkg.git
388391
.\vcpkg\bootstrap-vcpkg.bat
389-
- name: Restore vcpkg cache
390-
if: ${{ matrix.compiler == 'clang-cl' }}
391-
uses: actions/cache/restore@main
392-
id: restore-vcpkg-cache
393-
with:
394-
path: |
395-
vcpkg/installed
396-
vcpkg/buildtrees
397-
key: vcpkg-${{ runner.os }}-${{ matrix.compiler }}-${{ runner.arch }}-${{ hashFiles('**/vcpkg') }}
398-
restore-keys: vcpkg-${{ runner.os }}-${{ matrix.compiler }}-${{ runner.arch }}-
399392
400-
- name: Install dependencies with vcpkg
393+
- name: 'Setup NuGet Credentials for vcpkg'
401394
if: ${{ matrix.compiler == 'clang-cl' }}
402-
shell: pwsh
403-
run: >-
404-
.\vcpkg\vcpkg.exe install
405-
ffmpeg[avcodec,avformat,swscale,swresample]
406-
libpng
407-
opencv
408-
qtbase
409-
qtmultimedia
410-
qtsvg
411-
qttools
412-
vulkan
413-
zlib
414-
--triplet $env:VCPKG_TRIPLET
415-
--clean-after-build
416-
417-
- name: Save vcpkg cache
418-
if: ${{ github.ref == 'refs/heads/master' && matrix.compiler == 'clang-cl' }}
419-
uses: actions/cache/save@main
420-
with:
421-
path: |
422-
vcpkg/installed
423-
vcpkg/buildtrees
424-
key: ${{ steps.restore-vcpkg-cache.outputs.cache-primary-key }}
395+
shell: 'bash'
396+
run: |
397+
`./vcpkg/vcpkg fetch nuget | tail -n 1` \
398+
sources add \
399+
-source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
400+
-storepasswordincleartext \
401+
-name "GitHub" \
402+
-username "${{ github.repository_owner }}" \
403+
-password "${{ secrets.GITHUB_TOKEN }}"
404+
`./vcpkg/vcpkg fetch nuget | tail -n 1` \
405+
setapikey "${{ secrets.GITHUB_TOKEN }}" \
406+
-source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
425407
426408
- name: Restore LLVM Cache
427409
if: ${{ matrix.compiler == 'clang-cl' }}
@@ -431,6 +413,7 @@ jobs:
431413
path: ./llvm-${{ matrix.llvmver }}
432414
key: ${{ runner.os }}-llvm-dl-cache-${{ hashFiles('**/llvm-${{ matrix.llvmver }}') }}
433415
restore-keys: ${{ runner.os }}-clang-dl-cache-
416+
434417
- name: Add LLVM
435418
if: ${{ matrix.compiler == 'clang-cl' }}
436419
shell: pwsh
@@ -447,14 +430,14 @@ jobs:
447430
rm -r clang*
448431
}
449432
Add-Content -Path $env:GITHUB_PATH -Value "D:\a\rpcs3\rpcs3\llvm-${{ matrix.llvmver }}\bin"
450-
C:\PROGRA~1\LLVM\bin\clang-cl.exe --version
433+
451434
- name: Save LLVM Cache
452435
if: ${{ github.ref == 'refs/heads/master' && matrix.compiler == 'clang-cl' }}
453436
uses: actions/cache/save@main
454437
with:
455438
path: ./llvm-${{ matrix.llvmver }}
456439
key: ${{ steps.llvm-cache.outputs.cache-primary-key }}
457-
440+
458441
- name: Restore build Ccache
459442
uses: actions/cache/restore@main
460443
id: restore-build-ccache
@@ -472,7 +455,7 @@ jobs:
472455
.ci/build-windows-clang.sh
473456
.ci/setup-windows-ci-vars.sh ${{ matrix.arch }} ${{ matrix.compiler }}
474457
.ci/deploy-windows-${{ matrix.compiler }}.sh
475-
458+
476459
- name: install DIA SDK
477460
if: ${{ matrix.compiler == 'clang-cl' }}
478461
run: |

3rdparty/OpenAL/openal-soft

Submodule openal-soft updated 132 files

3rdparty/asmjit/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ include("${ASMJIT_DIR}/CMakeLists.txt")
1111
add_library(asmjit ${ASMJIT_SRC})
1212
target_include_directories(asmjit PUBLIC ${ASMJIT_DIR}/src)
1313
target_link_libraries(asmjit PRIVATE ${ASMJIT_DEPS})
14+
target_compile_options(asmjit PRIVATE -Wno-nontrivial-memcall -Wno-deprecated-anon-enum-enum-conversion)
1415

1516
# ASMJIT should have a option for disabling installing and this wouldnt
1617
# be required to avoid installing ASMJIT...

3rdparty/cubeb/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ set(USE_SANITIZERS FALSE CACHE BOOL "Dont't use sanitizers")
1010

1111
add_subdirectory(cubeb EXCLUDE_FROM_ALL)
1212
add_library(3rdparty::cubeb ALIAS cubeb)
13+
target_compile_options(cubeb PRIVATE
14+
-Wno-int-to-void-pointer-cast
15+
-Wno-deprecated-declarations
16+
-Wno-implicit-const-int-float-conversion
17+
)
1318

1419
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|ARM|aarch64|AArch64|Aarch64)")
1520
target_compile_definitions(speex PUBLIC

3rdparty/libusb/config.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
3333
)
3434
elseif(MSVC)
3535
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
36+
if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
37+
append_compiler_flags(
38+
-Wno-unused-value
39+
-Wno-pragma-pack
40+
${ADDITIONAL_CC_FLAGS}
41+
)
42+
endif()
3643
endif()
3744

3845
check_include_files(sys/timerfd.h USBI_TIMERFD_AVAILABLE)

3rdparty/yaml-cpp/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ set(YAML_CPP_BUILD_TESTS OFF CACHE BOOL "Enable testing" FORCE)
1212
set(YAML_CPP_BUILD_TOOLS OFF CACHE BOOL "Enable parse tools" FORCE)
1313
set(YAML_CPP_BUILD_CONTRIB OFF CACHE BOOL "Enable contrib stuff in library" FORCE)
1414
add_subdirectory(yaml-cpp EXCLUDE_FROM_ALL)
15+
target_compile_options(yaml-cpp PRIVATE -Wno-ignored-attributes -Wno-unused-value)
1516

1617
set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX_OLD})

buildfiles/cmake/ConfigureCompiler.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ if(MSVC)
55
check_cxx_compiler_flag("-msse -msse2 -mcx16" COMPILER_X86)
66
check_cxx_compiler_flag("-march=native" COMPILER_SUPPORTS_MARCH_NATIVE)
77
if (COMPILER_X86)
8-
#add_compile_options(-msse -msse2 -mcx16 -mavx512f -mavx512vbmi -mavx512vl -mavx512dq -mavx512vpopcntdq -mavx -mavx2 -maes -mrtm -mpclmul -mmwaitx -mwaitpkg)
9-
add_compile_options(-maes -mrtm -mpclmul -mmwaitx -mwaitpkg)
8+
add_compile_options(-msse -msse2 -mcx16)
109
endif()
1110
if(COMPILER_SUPPORTS_MARCH_NATIVE)
1211
add_compile_options(-march=native)

rpcs3/Crypto/aesni.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
#if defined(_MSC_VER) && defined(_M_X64)
3636
#define POLARSSL_HAVE_MSVC_X64_INTRINSICS
3737
#include <intrin.h>
38+
#ifdef __clang__
39+
#include <immintrin.h>
40+
#endif
3841
#endif
3942

4043
/*

rpcs3/Emu/Memory/vm_reservation.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ namespace vm
171171

172172
auto stamp0 = utils::get_tsc(), stamp1 = stamp0, stamp2 = stamp0;
173173

174-
#ifndef _MSC_VER
174+
#if !defined(_MSC_VER) || (defined(__clang__) && defined(_MSC_VER))
175175
__asm__ goto ("xbegin %l[stage2];" ::: "memory" : stage2);
176176
#else
177177
status = _xbegin();
@@ -180,7 +180,7 @@ namespace vm
180180
{
181181
if (res & rsrv_unique_lock)
182182
{
183-
#ifndef _MSC_VER
183+
#if !defined(_MSC_VER) || (defined(__clang__) && defined(_MSC_VER))
184184
__asm__ volatile ("xend; mov $-1, %%eax;" ::: "memory");
185185
#else
186186
_xend();
@@ -192,7 +192,7 @@ namespace vm
192192
{
193193
std::invoke(op, *sptr);
194194
const u64 old_time = res.fetch_add(128);
195-
#ifndef _MSC_VER
195+
#if !defined(_MSC_VER) || (defined(__clang__) && defined(_MSC_VER))
196196
__asm__ volatile ("xend;" ::: "memory");
197197
#else
198198
_xend();
@@ -206,7 +206,7 @@ namespace vm
206206
if (auto result = std::invoke(op, *sptr))
207207
{
208208
const u64 old_time = res.fetch_add(128);
209-
#ifndef _MSC_VER
209+
#if !defined(_MSC_VER) || (defined(__clang__) && defined(_MSC_VER))
210210
__asm__ volatile ("xend;" ::: "memory");
211211
#else
212212
_xend();
@@ -247,7 +247,7 @@ namespace vm
247247
break;
248248
}
249249

250-
#ifndef _MSC_VER
250+
#if !defined(_MSC_VER) || (defined(__clang__) && defined(_MSC_VER))
251251
__asm__ goto ("xbegin %l[retry];" ::: "memory" : retry);
252252
#else
253253
status = _xbegin();
@@ -260,7 +260,7 @@ namespace vm
260260
if constexpr (std::is_void_v<std::invoke_result_t<F, T&>>)
261261
{
262262
std::invoke(op, *sptr);
263-
#ifndef _MSC_VER
263+
#if !defined(_MSC_VER) || (defined(__clang__) && defined(_MSC_VER))
264264
__asm__ volatile ("xend;" ::: "memory");
265265
#else
266266
_xend();
@@ -274,7 +274,7 @@ namespace vm
274274
{
275275
if (auto result = std::invoke(op, *sptr))
276276
{
277-
#ifndef _MSC_VER
277+
#if !defined(_MSC_VER) || (defined(__clang__) && defined(_MSC_VER))
278278
__asm__ volatile ("xend;" ::: "memory");
279279
#else
280280
_xend();
@@ -286,7 +286,7 @@ namespace vm
286286
}
287287
else
288288
{
289-
#ifndef _MSC_VER
289+
#if !defined(_MSC_VER) || (defined(__clang__) && defined(_MSC_VER))
290290
__asm__ volatile ("xend;" ::: "memory");
291291
#else
292292
_xend();

0 commit comments

Comments
 (0)