Skip to content

Commit 319da78

Browse files
committed
Merge branch 'master' into for-0.56.0/sync
2 parents fb4162b + fae4b19 commit 319da78

4 files changed

Lines changed: 16 additions & 9 deletions

File tree

cmake/DaemonSourceGenerator.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,17 @@ macro(daemon_embed_files basename dir list format targetname)
8686
set(DAEMON_EMBEDDED_FILES_HEADER "${DAEMON_EMBEDDED_SUBDIR}/DaemonEmbeddedFiles.h")
8787

8888
string(APPEND embed_header_text
89+
"// Automatically generated, do not modify!\n"
8990
"#ifndef DAEMON_EMBEDDED_FILES_H_\n"
9091
"#define DAEMON_EMBEDDED_FILES_H_\n"
92+
"#include <cstddef>\n"
9193
"#include <unordered_map>\n"
9294
"#include <string>\n"
9395
"\n"
9496
"struct embeddedFileMapEntry_t\n"
9597
"{\n"
96-
" const char* data;\n"
97-
" size_t size;\n"
98+
"\tconst char* data;\n"
99+
"\tsize_t size;\n"
98100
"};\n"
99101
"\n"
100102
"using embeddedFileMap_t = std::unordered_map<std::string, const embeddedFileMapEntry_t>;\n"

external_deps/build.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ cmake_build() {
249249
cmake --install build --strip
250250
}
251251

252-
# Build pkg-config, needed for opusfile and SDL3.
252+
# Build pkg-config, needed for opusfile.
253253
# As a host-mode dependency it must be provided by the system when cross-compiling.
254254
build_pkgconfig() {
255255
local dir_name="pkg-config-${PKGCONFIG_VERSION}"
@@ -262,7 +262,12 @@ build_pkgconfig() {
262262

263263
cd "${dir_name}"
264264

265-
CFLAGS="${CFLAGS} -Wno-error=int-conversion" \
265+
# Reset the environment variables, we don't cross-compile this,
266+
# it is part of the cross-compilation toolchain.
267+
# CXXFLAGS is unused.
268+
CFLAGS='-Wno-error=int-conversion' \
269+
LDFLAGS='' \
270+
HOST='' \
266271
configure_build \
267272
--with-internal-glib
268273
}
@@ -765,6 +770,7 @@ build_openal() {
765770
cd "${dir_name}"
766771

767772
cmake_build \
773+
-DALSOFT_UTILS=OFF \
768774
"${openal_cmake_args[@]}"
769775
;;
770776
esac
@@ -1416,7 +1422,7 @@ setup_macos-amd64-default() {
14161422
MACOS_ARCH=x86_64
14171423
# OpenAL requires 10.14.
14181424
export MACOSX_DEPLOYMENT_TARGET=10.14 # works with CMake
1419-
common_setup macos x86_64-apple-darwin11
1425+
common_setup macos "x86_64-apple-macos${MACOSX_DEPLOYMENT_TARGET}"
14201426
}
14211427

14221428
# Set up environment for 32-bit i686 Linux

libs/nacl/native_client/src/shared/imc/posix/nacl_imc_posix.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,8 @@ static int AshmemCreateRegion(size_t size) {
8080
int NaClWouldBlock(void) {
8181
return errno == EAGAIN;
8282
}
83-
8483
int NaClGetLastErrorString(char* buffer, size_t length) {
85-
#if NACL_LINUX && !NACL_ANDROID
84+
#if NACL_LINUX && defined(__GLIBC__)
8685
char* message;
8786
/*
8887
* Note some Linux distributions provide only GNU version of strerror_r().

src/engine/renderer/tr_main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ void R_CalcTangents( vec3_t tangent, vec3_t binormal,
9494
binormal[1] = dtx[0] * dpy[1] - dpx[1] * dty[0];
9595
binormal[2] = dtx[0] * dpy[2] - dpx[2] * dty[0];
9696

97-
VectorNormalizeFast( tangent );
98-
VectorNormalizeFast( binormal );
97+
VectorNormalize( tangent );
98+
VectorNormalize( binormal );
9999
}
100100

101101
void R_CalcTangents( vec3_t tangent, vec3_t binormal,

0 commit comments

Comments
 (0)