2
0
mirror of https://github.com/boostorg/context.git synced 2026-01-19 04:02:17 +00:00

31 Commits

Author SHA1 Message Date
Erik Bråthen Solem
3335e8510d Add additional checks to detect more PowerPC architecture name variants 2025-10-29 03:23:54 +01:00
Erik Bråthen Solem
557b8f6291 Fix detection of PowerPC architectures 2025-10-29 03:23:03 +01:00
crueter
71153912f0 [cmake] don't apply assembler options to armasm
MSVC armasm doesn't support /nologo, /quiet etc. so let's just not apply
any options period.

Signed-off-by: crueter <crueter@eden-emu.dev>
2025-09-08 12:39:15 -04:00
Oliver Kowalke
f5deda1181 Merge pull request #307 from lowkeyrossi/WoA_fix
CMake: Set correct assembler for MSVC ARM targets
2025-07-31 14:24:29 +02:00
Carlo Bramini
480f09eb38 [CMAKE] CYGWIN: set correct binfmt and abi
Compiling on CYGWIN prints this error:

[  4%] Building ASM-ATT object libs/context/CMakeFiles/boost_context.dir/src/asm/make_x86_64_sysv_elf_gas.S.o
/usr/bin/as: unrecognized option `-x'
make[2]: *** [libs/context/CMakeFiles/boost_context.dir/build.make:78: libs/context/CMakeFiles/boost_context.dir/src/asm/make_x86_64_sysv_elf_gas.S.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:3961: libs/context/CMakeFiles/boost_context.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

This PR fixes the right assembly sources to build because sysv and elf are nonsense on CYGWIN.
After this patch, it correctly searches make_x86_64_ms_pe_gas.asm, although it still raises an error because unrecognized -x option.
2025-07-30 13:18:38 +02:00
newyork_loki
8b19d4f5e7 CMake: Set correct assembler for MSVC ARM targets 2025-07-10 18:15:18 +05:30
Daniil
628cefe0ca Fix clang-cl MSVC frontend received GNU flag on assembling 2025-02-22 20:38:31 +02:00
Daniil
f6726cc39d Suppress build: masm logo and clang warning argument unused during compilation 2025-01-30 16:36:14 +02:00
Oliver Kowalke
fa35c154f7 Merge pull request #276 from MehdiChinoune/patch-1
Support building assembly files for mingw-w64 on arm64 with CMake.
2024-12-26 08:13:22 +01:00
Oliver Kowalke
3a2a2fb703 Merge pull request #268 from Dargun/fix_asm_files_language
fix for for: visual studio missing buildtool peroperty for asm files
2024-12-26 08:07:04 +01:00
مهدي شينون (Mehdi Chinoune)
f82483d343 Support building assembly files for mingw-w64 on arm64 with CMake. 2024-12-15 06:13:11 +01:00
Oliver Kowalke
7c80551e16 Merge pull request #273 from rdoeffinger/develop
Convert make_fcontext etc into true C++ symbols
2024-10-27 17:34:44 +01:00
Reimar Döffinger
245904742b Convert make_fcontext etc into true C++ symbols
Also mark the non-mangled fcontext asm function symbols
as hidden visibility
These functions should not be exported as dynamic
symbols by boost, only the namespaced C++ symbols
introduced by this patch should.
2024-10-14 13:23:16 +02:00
Oliver Kowalke
5298509805 Update CMakeLists.txt
architecture renamed: ppc32/ppc64 -> power
2024-10-08 09:44:23 +02:00
r.nowak
8aa72de691 fix for for: visual studio missing buildtool peroperty for asm files 2024-09-12 17:06:15 +02:00
Felix L
1a7562348d CMake: Fix assembler --defsym format issue (qcc/qnx)
Adjust compile definitions to adhere to KEY=VALUE (where VALUE is empty string) so it builds with qcc.
2023-09-06 13:46:42 +02:00
dixyes
697299ea55 Add windows arm64 fcontext support 2022-06-26 09:51:30 +08:00
Zhang Na
e1001c479e Add support for loongarch64 2022-02-15 17:28:33 +08:00
Peter Dimov
b996250074 Add ABI autodetection logic modeled after the platform one and build/Jamfile 2021-11-03 16:21:18 +02:00
yhsb2k
8c33d10bf4 Fix build with gcc
Without this, asm files passed to gcc with "-c" option (without preprocessing).
It leads to "linker input file unused because linking not done" warnings and
"make_x86_64_ms_pe_gas.asm.obj: No such file or directory" error.
2021-08-22 14:02:35 +03:00
leha-bot
cf656dcdad CMake: also add MIPS detection
Based on CMAKE_SYSTEM_PROCESSOR and arch bitness.
2021-08-10 15:10:04 +03:00
leha-bot
5c8163d68c CMake: fix detection of arm/aarch64 (#182)
Use CMAKE_SYSTEM_PROCESSOR at first step and if it matches to any
Boost.Context arch option, then we will use it as default arch.
Otherwise we try to detect the known arm names depending on current
bitness.

Fixes #182.
2021-08-10 15:09:41 +03:00
Nikita Kniazev
8425e830ea Cease dependence on Thread
On C++11 static local variables are initialized in thread-safe manner, but even on C++03 it should not be a problem because in our case variables are of trivial types, which means double initialization is not an issue, and they are initialized with the same value in every thread.
2021-06-12 22:23:08 +03:00
Peter Dimov
d1d39c8b9f Update CMakeLists.txt 2021-06-04 20:19:35 +03:00
Peter Dimov
8f3112f408 Cygwin fixes 2021-06-03 19:46:48 +03:00
Peter Dimov
fb0f3eab4d Only enable ASM-ATT on Cygwin, and ASM otherwise 2021-06-02 03:28:14 +03:00
Peter Dimov
c16e222fe7 Set language explicitly for .asm files, because otherwise macOS fails 2021-06-02 02:08:59 +03:00
Peter Dimov
69c28a8839 Use /safeseh for masm/i386 2021-06-02 00:35:03 +03:00
Peter Dimov
33721871f1 Special-case 'mach-o' as the file names have 'macho' 2021-06-02 00:09:32 +03:00
Peter Dimov
29bca8eef6 Capitalize Context in CMakeLists.txt 2021-06-01 22:27:32 +03:00
Peter Dimov
b57ecdb7b2 Add CMakeLists.txt 2021-06-01 21:17:33 +03:00