a29294fddc
SCons: Refactor color output implementation
2025-01-07 18:44:53 -06:00
95b00295fb
Merge pull request #96447 from Repiteo/scons/clang-cl-compile_commands
...
SCons: Set appropriate prefix when using clang-cl
2024-12-19 19:59:45 -06:00
a0300532b5
[Windows, LLVM] Fix colorize flag.
2024-12-18 21:00:32 +02:00
f86b3696f6
SCons: Properly set SSE2 as baseline on x86_32
...
Setting it only for release templates on Windows and macOS was inconsistent,
and Jolt requires it as a minimum.
Drop the `-mxsave` flag from the raycast module, this doesn't seem to be
used explicitly by Embree, and unnecessarily makes our config and baseline
muddy.
2024-12-12 22:44:44 +01:00
6d326547da
Windows: Fix duplicate .exe extension with mingw on Linux/macOS
...
This old hack is no longer needed and now wrong after #98105 .
Fixes #98967 .
2024-11-08 16:46:35 +01:00
fa65b70494
Merge pull request #98105 from Repiteo/scons/mingw-shenanigans
...
SCons: Extend `MinGW` support & checks
2024-11-07 12:36:32 -06:00
17f06f6dae
Merge pull request #97555 from dustdfg/platform_methods/extract_validate_arch
...
Build System: Extract `validate_arch` helper functions
2024-10-25 13:03:48 -05:00
14d201ab54
Merge pull request #97556 from dustdfg/platforms/windows_detect_extract_common_checks
...
Extract common check functions in windows_detect.py file
2024-10-24 13:22:40 -05:00
9968828913
SCons: Set appropriate prefix when using clang-cl
2024-10-24 10:22:32 -05:00
d4dddd00cb
SCons: Extend MinGW support & checks
2024-10-11 14:24:00 -05:00
a44f691fc7
CI: Add MinGW/GCC build to Windows GHA
2024-10-10 10:10:55 -05:00
7aacdaa071
Build System: Extract validate_arch helper function
...
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com >
2024-10-06 07:50:49 +03:00
9c50312f0d
Extract common check functions in windows_detect.py file
...
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com >
2024-09-27 21:15:33 +03:00
395a4fc5f2
[SCons] Remove MAXLINELENGTH override for MSVC
...
It's not clear what is the actual max value that windows support, but
despite their claim of it being 8191 we have been seeing failure with
just 8150.
2024-09-26 12:06:16 +02:00
648b21b9ba
Merge pull request #96813 from Repiteo/scons/fix-clang-cl-flags
...
SCons: Fix `clang-cl` link/ar flags
2024-09-23 12:27:59 +02:00
454251660c
Fix using Binutils AR with TEMPFILE on Windows
...
Set `TEMPFILEARGESCFUNC`[1] to replace backslashes with forward slashes
in paths.
[1]: https://scons.org/doc/production/HTML/scons-user/apa.html#cv-TEMPFILEARGESCFUNC
2024-09-19 22:19:15 +08:00
804d9775b5
Merge pull request #96407 from alvinhochun/mingw-ar-long-command-tempfile
...
Remove `ARFLAGS` hack for Windows, replace with `TEMPFILE`
2024-09-18 17:40:53 +02:00
df0a88b128
SCons: Fix clang-cl link/ar flags
2024-09-10 13:48:53 -05:00
b1f9271e49
[MinGW] Fix GCC ar detection.
2024-09-09 11:01:29 +03:00
28b95ff550
Remove ARFLAGS hack for Windows, replace with TEMPFILE
...
TEMPFILE is the built-in way of SCons to use a response file for command
lines that are too long.
2024-09-01 04:10:30 +08:00
35a8ff9284
mingw: Only use ar --thin on supported versions
...
The flag is supported since Binutils 2.38 [1] or LLVM 14 [2].
[1]: https://sourceware.org/bugzilla/show_bug.cgi?id=28759
[2]: dd6e7e0d57
2024-09-01 02:13:31 +08:00
346cbc7f1f
Add support for compiling with VS clang-cl toolset
2024-08-28 13:30:44 -05:00
2d300a0bdc
MinGW: Use thin archives to reduce disk space
2024-08-28 18:20:16 +08:00
b5258b42c0
Enable Clang color output on Windows
2024-08-28 18:20:16 +08:00
e9b6c1baf8
Windows/detect.py: Detect llvm-mingw GCC wrappers and set use_llvm
2024-08-28 18:20:16 +08:00
3a0837b74b
Windows/detect.py: Simplify try_cmd function
2024-08-28 17:20:27 +08:00
73acb2a5b8
Merge pull request #94845 from alvinhochun/llvm-mingw-sanitizers
...
Windows: Add sanitizers for llvm-mingw, increase stack for ASan
2024-08-28 00:12:30 +02:00
6e9bcc0f18
SCons: Better validation for platform-specific opt-in drivers
...
This replaces cryptic compilation errors with a clear error message
and early build termination.
2024-08-21 22:53:34 +02:00
25270d5907
Allow llvm-mingw sanitizers only on x86_32/x86_64
2024-07-28 17:21:35 +08:00
0cda0b935d
Windows: Add sanitizers for llvm-mingw, increase stack for ASan
...
ASan and UBSan are supported by llvm-mingw. They can be enabled by
passing `use_asan=yes use_ubsan=yes` to scons.
2024-07-28 04:32:18 +08:00
5d5d51937f
[Windows] Remove libSynchronization
2024-07-27 17:12:27 +03:00
52a2836861
Disable FP contraction.
2024-07-23 14:33:51 +03:00
a50fe87b89
Merge pull request #94078 from Repiteo/scons/msvc-flag-fix
...
SCons: Don't override cl flags on msvc
2024-07-22 14:12:45 +02:00
0e519118d2
[Windows] Fix release export template build for ARM64 Windows.
2024-07-19 14:33:40 +03:00
9f714bfde5
[Windows] Add libSynchronization to link flags.
2024-07-17 10:58:03 +03:00
ee2c1584e4
D3D12: Get rid of DXIL.dll!
2024-07-11 17:56:45 +02:00
0f691efb1b
SCons: Don't override cl flags on msvc
2024-07-08 09:48:18 -05:00
abfce31ba7
Merge pull request #93152 from RandomShaper/prebuilt_asan
...
Enable usage of asan-enabled versions of prebuilt libraries
2024-07-02 17:27:31 +02:00
63911b994c
Windows: Fix arch detection via VCTOOLSINSTALLDIR
2024-06-25 13:31:46 +02:00
f9c51183bb
Merge pull request #93342 from kus04e4ek/build-fix
...
Fix not using `encoding="utf-8"` when writing to files or reading from them
2024-06-24 11:14:10 +02:00
04d70c11fc
[Windows/ARM64] Fix raycast/embree ARM64 build with LLVM/MinGW.
2024-06-20 15:52:04 +03:00
0c6dbbd050
Fix not using encoding="utf-8" when writing to files or reading from them
...
Co-authored-by: ChristopheClaustre <christophe.claustre.31@gmail.com >
2024-06-19 23:35:03 +08:00
d1eebd3493
Enable usage of asan-enabled versions of prebuilt libraries
2024-06-14 14:06:38 +02:00
31277e43a7
Merge pull request #91890 from Repiteo/scons/silence_msvc-fixes
...
SCons: Fix `silence_msvc` implementation errors
2024-06-11 13:57:01 +02:00
896b003cc8
SCons: Convert platform get_flags to dictionary
2024-05-22 13:53:20 -05:00
d9f8ef68df
Update pre-commit hooks configuration to use ruff instead of black
2024-05-21 18:02:29 -05:00
0ec4ec0f90
SCons: Fix silence_msvc implementation errors
2024-05-14 12:22:54 -05:00
8a57f64255
Revert "Implement "get_mingw_tool" to fix mingw prefixes"
...
This reverts commits ecebe0b40d
and 15d37ed2a8 .
Fixes #91710 .
2024-05-09 11:10:32 +02:00
ecebe0b40d
Implement "get_mingw_tool" to fix mingw prefixes
...
• Replaces "try_cmd" entirely and removes need for "get_mingw_bin_prefix" in isolation
2024-05-06 17:32:53 -05:00
dee1231ce6
Merge pull request #91220 from Repiteo/scons/colorize-warn-error
...
SCons: Colorize warnings/errors during generation
2024-04-29 10:10:16 +02:00