Commit Graph

14 Commits

Author SHA1 Message Date
Tim Angus
f41496b399 Set CMAKE_INSTALL_PREFIX default more correctly 2025-09-12 20:46:13 +01:00
Tim Angus
3d8979f769 Add -Wshadow to compiler warnings 2025-09-08 21:22:31 +01:00
Tim Angus
f976711fb4 Fix various warnings 2025-09-07 17:03:20 +01:00
Simon McVittie
dc00968bc1 client: Remove i386 GNU assembler version of S_WriteLinearBlastStereo16()
This was the last remaining GNU assembler code that was in its own
independent source file, as opposed to being embedded in C code with
GNU `__asm__ volatile` or MSVC `__asm` (which tends to be much easier
to deal with in a modern build system).

When the Quake 3 engine was originally written, this might have been
an "expensive" function when written in portable C, but after 25 years
of CPU development it's less likely to matter (and modern compilers
might produce faster results from the C code anyway).

Resolves: https://github.com/ioquake/ioq3/issues/778
Signed-off-by: Simon McVittie <smcv@debian.org>
2025-08-23 21:23:03 +01:00
Simon McVittie
9f0280bca1 Remove unused matha.S
Before commit a7d33b1c "(bug #3639) BoxOnPlaneSide rewrite" there
was more code here, but since then the only thing left is the
Invert24To16 function, to which I couldn't find any references since
the beginning of ioquake3's git history.

Resolves: https://github.com/ioquake/ioq3/issues/774
Signed-off-by: Simon McVittie <smcv@debian.org>
2025-08-23 21:23:03 +01:00
Simon McVittie
88918579a3 cmake: Only link snd_mixa into the client, not the dedicated server
On i386 it references symbols from other client-only sound code.

Resolves: https://github.com/ioquake/ioq3/issues/770
Signed-off-by: Simon McVittie <smcv@debian.org>
2025-08-22 21:32:56 +01:00
Tim Angus
9d2227cf5c Add -fvisibility=hidden to GCC/Clang compiler flags 2025-08-22 18:46:21 +01:00
Tim Angus
3aee97dfab Fix GCC x86 build 2025-08-22 18:38:46 +01:00
Simon McVittie
de6e8747ab cmake: Don't override CMAKE_INSTALL_PREFIX if set by user
The README says that it can be changed, but it was hard-coded here.

Signed-off-by: Simon McVittie <smcv@debian.org>
2025-08-20 21:32:48 +01:00
smallmodel
b297c596e9 Add Windows ARM platform 2025-08-19 11:00:27 +01:00
Tim Angus
23b1f6a3bd Add -fno-string-aliasing (issue #760) 2025-08-19 10:48:13 +01:00
Tim Angus
dcbbf2c806 Enable ASM language as required 2025-08-13 15:37:23 +01:00
Tim Angus
bbf549cc69 CMake install configuration
This is 99% for *nix based operating systems; it may work elsewhere but
it's not recommended.
2025-08-13 15:37:23 +01:00
Tim Angus
4c6f3f81eb CMake build system 2025-08-03 17:36:01 +01:00