gingerBill
132e4e470f
Merge pull request #6249 from laytan/fix-box2d-build-and-try-lfs
...
fix box2d build and try Git LFS
2026-02-10 13:30:24 +00:00
Jeroen van Rijn
9c3ea1386f
Merge pull request #6250 from jakubtomsu/dep-cleanup
...
Clean-up some imports and dependencies
2026-02-09 23:11:08 +01:00
jakubtomsu
d492122bd4
import cleanup
2026-02-09 20:08:22 +01:00
laytan
5a02132ac3
fix box2d build and try git LFS
2026-02-09 19:48:27 +01:00
gingerBill
8018604f83
Fix handle_map index on dynamic_add
2026-02-08 22:58:44 +00:00
Laytan Laats
7b18a08d56
add vendor:curl to docs
2026-02-07 15:45:25 +01:00
gingerBill
6130f34e47
Merge pull request #6242 from heavyrain266/fix-enum-type
...
vendor:directx/d3d12 fixed access violation errors
2026-02-07 09:43:11 +00:00
Ignacy Koper
dcbbb5792b
vendor:directx/d3d12: changed backing integers of BARRIER* enums and bit-sets to u32 from i64
...
and added missing `Flags` field to `TEXTURE_BARRIER` struct
Signed-off-by: Ignacy Koper <ignacy423@gmail.com >
2026-02-07 09:58:42 +01:00
Jeroen van Rijn
0c360e51a1
Merge pull request #6228 from heavyrain266/expand-d3d12
...
added `IGraphicsCommandList7` to vendor:directx/d3d12
2026-02-06 14:14:58 +01:00
Ignacy Koper
a6ad74cea6
vendor:directx/d3d12: added IGraphicsCommandList7 with enhanced barriers
...
Signed-off-by: Ignacy Koper <ignacy423@gmail.com >
2026-02-06 13:59:02 +01:00
Jeroen van Rijn
b2d113aebf
Merge pull request #6230 from Nahuel2998/fix/x11-xlib-xchangewindowattributes
...
vendor/x11/xlib: Fix signature of XChangeWindowAttributes
2026-02-04 21:48:22 +01:00
Nahuel2998
7ef562b51e
vendor/x11/xlib: Fix signature of XChangeWindowAttributes
...
Actually fixes #5139
2026-02-04 17:29:10 -03:00
gingerBill
6f7a64a47d
Change LTO rules for all platforms
2026-02-04 17:15:48 +00:00
gingerBill
b942f72cb0
Add docs for -lto:<string>; remove -lld and -radlink flags docs; with -lto default to -use-separate-modules and -linker:lld
dev-2026-02
2026-02-04 12:45:26 +00:00
gingerBill
5cf0ba47ab
Merge pull request #6226 from Nahuel2998/fix/x11-xlib-procs-returntype
...
vendor/x11/xlib: Fix returntype of some procs
2026-02-04 10:28:29 +00:00
gingerBill
61f3d45fa7
Merge pull request #6227 from JesseRMeyer/lto-support
...
Fix LTO on Windows
2026-02-04 08:59:23 +00:00
Jesse Meyer
b8276065f9
Merge branch 'master' into lto-support
2026-02-03 20:52:52 -05:00
Jesse Meyer
bd6148dd6b
Fix Windows LTO: preserve required procedures with llvm.used
...
On Windows with LTO, required procedures with external linkage need to
be added to @llvm.used to survive linker-level dead code elimination.
LLVM may generate implicit calls to runtime builtins (e.g., __extendhfsf2
for f16 conversions) during instruction lowering, after the IR is
finalized. Without @llvm.used, the linker discards these procedures
before the implicit calls are generated.
This adds required procedures to @llvm.used at creation time. The fix
is Windows-specific; other platforms handle this correctly.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-03 20:16:44 -05:00
Jesse Meyer
a0562dfd6e
Fix lld-link LTO jobs flag syntax on Windows
...
lld-link doesn't recognize /lldltojobs:N as a standalone flag and
treats it as a file path. Use /opt:lldltojobs=N instead.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-03 20:16:20 -05:00
Jesse Meyer
9eba12948a
Skip sanitizer IR passes when LTO is enabled
...
With ThinLTO, the linker runs sanitizer passes at link time via
-fsanitize= flags, where it has whole-program visibility. Running
them at bitcode emission too double-instruments every module,
producing hundreds of "Redundant instrumentation detected" warnings.
Per-function sanitize/no_sanitize attributes are preserved in the
bitcode and respected by the linker's pass.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-03 20:16:20 -05:00
Jesse Meyer
43ad4a1d9f
Add ThinLTO support via -lto:thin and -lto:thin-files flags
...
- Add -lto:thin and -lto:thin-files CLI flags with validation
- Emit LLVM bitcode (.bc) instead of object files when LTO is enabled
- Pass -flto=thin and -flto-jobs to clang/lld linkers
- Guard linkage corrections to skip declarations without definitions
(required for LTO where declarations appear across modules)
- Allow module-per-file with LTO even at higher optimization levels
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-02-03 20:16:20 -05:00
Nahuel2998
37e82c9387
vendor/x11/xlib: Fix returntype of some procs
...
Returntype of a few procs was incorrectly set to i32 rather than a proc
that returns i32.
2026-02-03 17:17:33 -03:00
Jeroen van Rijn
270df36468
Merge pull request #6213 from Yawning/feature/more-secec
...
crypto: More core:crypto
2026-02-03 15:45:57 +01:00
gingerBill
e6a62c4bb0
Minor optimization to map_probe_distance
2026-02-03 12:19:20 +00:00
Yawning Angel
eadd5f789c
core/crypto/ecdh: Add secp384r1
2026-02-03 18:48:07 +09:00
Yawning Angel
64ce2bdf0e
core/crypto/_weierstrass: Add secp384r1
2026-02-03 18:48:07 +09:00
Yawning Angel
bd0cfe4a81
core/crypto/_fiat: Minor p256 cleanups
2026-02-03 16:15:16 +09:00
Jeroen van Rijn
de086c316f
Merge pull request #6223 from FabzAn/pass-on-permanent_allocator
...
text/regex: Pass given allocator on in create_iterator
2026-02-02 20:25:27 +01:00
gingerBill
f3daaa62fe
Merge pull request #6220 from laytan/fix-lto-macos
...
fix LTO on MacOS
2026-02-02 18:46:18 +00:00
Fabian Erdmann
55ab089ffc
text/regex: Pass given allocator on in create_iterator
2026-02-02 19:41:37 +01:00
Laytan Laats
afbbb829ea
fix LTO on MacOS
...
If no `-minimum-os-version` is given, ignore the `override-module`
warnings. The user not using, `-minimum-os-version` opts you into linker
warnings about target versions.
If a `-minimum-os-version` is provided, normalize it to a full version
`11` to `11.0.0` for example. The linker seems to want that when doing
LTO.
2026-02-02 18:13:48 +01:00
Jeroen van Rijn
6a07f70c1c
support -> supported
2026-02-02 17:57:50 +01:00
gingerBill
3666c1d3aa
Merge branch 'master' of https://github.com/odin-lang/Odin
2026-02-02 14:28:23 +00:00
gingerBill
bb7496a2fc
Add intrinsics.count_trailing_ones and intrinsics.count_leading_ones
2026-02-02 14:28:16 +00:00
Jeroen van Rijn
13f26f4645
Merge pull request #6218 from Kelimion/fix-6204
...
Fix #6204
2026-02-02 13:22:38 +01:00
Jeroen van Rijn
98413ad154
Remove duplicate buffer
2026-02-02 13:16:13 +01:00
Jeroen van Rijn
3a7c4994ac
Fix #6204
...
Use temporary stack buffers and some global scratch space to remove the need for any allocator.
2026-02-02 13:11:23 +01:00
gingerBill
80c9482774
Merge pull request #6217 from odin-lang/bill/threading-fixes-2026-02
...
Fix to frontend threading bugs
2026-02-02 12:04:21 +00:00
gingerBill
a936f3fb7d
Comment out t->Struct.are_offsets_being_processed.load()
2026-02-02 11:41:33 +00:00
gingerBill
8594deb4e1
Move return true; to after the if check
2026-02-02 11:40:30 +00:00
gingerBill
2bbedda61c
Remove unneeded mutex in hash_exact_value
2026-02-02 11:39:57 +00:00
gingerBill
041ebdd8f6
Add parent mutex lock for scope_insert_with_name
2026-02-02 11:39:17 +00:00
gingerBill
813b622dcc
Merge pull request #6214 from Josh8011/master
...
user32.odin add UnhookWinEvent
2026-02-02 11:37:43 +00:00
gingerBill
adf56ced22
Merge pull request #6215 from odin-lang/bill/fix-data-races-2026-02
...
Fix numerous data races
2026-02-02 11:37:19 +00:00
gingerBill
b9e4007cb1
Merge pull request #6216 from odin-lang/bill/debug-info-fixes
...
Debug Info Fixes
2026-02-02 11:33:21 +00:00
gingerBill
c85af4a454
Fix #6202
2026-02-02 11:27:41 +00:00
gingerBill
b183b1219c
Revert mutex_lock logic
2026-02-02 11:25:49 +00:00
gingerBill
63c4faca75
Fix positions for debug locations in defer, loops, and switch clauses
2026-02-02 11:19:00 +00:00
gingerBill
fde90931de
Add case for completeness
2026-02-02 11:16:05 +00:00
gingerBill
3dccd4e3ad
Fix debug info
2026-02-02 11:15:34 +00:00