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
gingerBill
f7901cffc9
Add doc.odin and mention the defineables through #config
2026-01-31 16:28:47 +00:00
Jeroen van Rijn
8f13853243
Merge pull request #6201 from kovalenko0/fix/os2-read-entire-file-dword
...
os\os2 windows: fix truncate-clamp op order when determining to_read size
2026-01-31 14:31:53 +01:00
Oleksandr Kovalenko
8d8aaf65aa
os\os2 windows: fix truncate-clamp op order when determining to_read size
2026-01-31 15:01:56 +02:00
Jeroen van Rijn
6ef2783f03
Merge pull request #6200 from Kelimion/fix-6198
...
Fix #6198
2026-01-31 11:06:38 +01:00
Jeroen van Rijn
2b539bfcd5
Fix #6198
2026-01-31 10:50:42 +01:00
Jeroen van Rijn
b1122284f1
Fix #6197
2026-01-31 10:19:00 +01:00
Laytan Laats
0a05ff05a3
nbio: fix send/recv buffer logic
2026-01-30 23:37:31 +01:00
gingerBill
2142d07964
Merge pull request #6195 from BunterSchatten/os-lookup-env-buf
...
core/os, core/os/os2: fix lookup_env_buf only working with empty buffer
2026-01-30 15:47:09 +00:00
David Bader
fb9377df17
core/os: fix lookup_env_buf only working with empty buffer
2026-01-30 14:44:38 +01:00
gingerBill
4b33c6a361
Revert build.bat
2026-01-30 12:16:54 +00:00
gingerBill
dfda1b2857
Merge branch 'master' of https://github.com/odin-lang/Odin
2026-01-30 12:15:53 +00:00
gingerBill
2397633618
Update demo.odin
2026-01-30 12:14:59 +00:00
gingerBill
c4952c0b7e
Merge pull request #6048 from odin-lang/bill/feature-using-stmt
...
Make `using` as a statement opt-in with `#+feature using-stmt`
2026-01-30 11:00:18 +00:00
gingerBill
5d47a2e92d
Merge pull request #6053 from blob1807/test-runner-sig-win-api
...
[`core:testing`] Use Windows API for SIG handling
2026-01-30 11:00:12 +00:00
gingerBill
19b545e7cb
Merge branch 'master' into bill/feature-using-stmt
2026-01-30 10:49:55 +00:00
gingerBill
5a21213fa5
Merge pull request #6093 from bplu4t2f/master
...
Add more win32 bindings
2026-01-30 10:47:08 +00:00
gingerBill
7125782bd2
Support -linker:mold on FreeBSD and NetBSD; Remove -use-lld and -use-radlink
2026-01-30 10:46:35 +00:00
gingerBill
3f35aef47d
Merge pull request #6194 from Faker-09/vet_flags
...
Fix for various combinations of -vet options on the command line and top of file not working together
2026-01-30 10:37:42 +00:00
Faker-09
30ef01ee8d
Merge branch 'odin-lang:master' into vet_flags
2026-01-29 11:35:24 -05:00
gingerBill
70059b0fba
Merge pull request #6141 from magicalhacks/x11-fixes
...
Minor x11/xlib bindings fixes (KeySym + Xutf8LookupString)
2026-01-29 14:00:22 +00:00
gingerBill
3dea35c157
Merge pull request #6177 from odin-lang/bill/handle-map
...
`core:container/handle_map`
2026-01-29 13:17:42 +00:00
gingerBill
b8438075d4
Merge pull request #6191 from odin-lang/bill/fix-constant-check
...
Remove else check for untyped to typed
2026-01-29 12:08:24 +00:00
gingerBill
67541434f4
Remove else check for untyped to typed
2026-01-29 11:58:37 +00:00
gingerBill
319e991cbb
Merge pull request #6190 from odin-lang/bill/struct-simple
...
`struct #simple`: force a struct to use simple comparison if all of the fields "nearly simply comparable"
2026-01-29 11:54:00 +00:00
gingerBill
07d814d9cf
Add struct #simple to force a struct to use simple comparison if all of the fields "nearly simply comparable".
2026-01-29 10:49:26 +00:00
gingerBill
4a7fb46667
Complete is_type_simple_compare switch rules
2026-01-29 09:21:31 +00:00
Shane Shrybman
f6322b4b31
Fix for vet flags. All combinations of vet flags on the command line and top of file are working
2026-01-28 14:18:30 -05:00
gingerBill
73ccdc8af8
Merge branch 'master' of https://github.com/odin-lang/Odin
2026-01-28 17:26:25 +00:00
gingerBill
f2b0f63b81
Use clean paths to calculate volumes
2026-01-28 17:26:19 +00:00
Jeroen van Rijn
6cb2feb50f
Merge pull request #5805 from Yawning/feature/secec
...
core/crypto: Add initial support for short Weierstrass curves
2026-01-28 16:42:20 +01:00
gingerBill
37c2f68824
Allow #unroll for arrays of fixed length which are not constants
2026-01-28 15:30:23 +00:00
gingerBill
16881e256d
Fix absolute and volume name checks on Windows
2026-01-28 15:24:21 +00:00
Yawning Angel
d438f27efb
core/crypto/_chacha20: Use the precomputation trick for ref
...
Might as well bring this in sync with the runtime chacha8 version of the
code since this is faster.
2026-01-28 23:04:38 +09:00
Yawning Angel
f5b7274a77
core/crypto/_edwards25519: Support crypto.COMPACT_IMPLS
2026-01-28 22:50:27 +09:00
Yawning Angel
c35b49bf60
core/crypto/ecdh: Initial import
2026-01-28 22:50:27 +09:00
Yawning Angel
5ce448a8d5
core/crypto: Start work on the NIST curves
2026-01-28 22:50:27 +09:00
gingerBill
db26fb8a21
Add missing @(require_results) to procedures
2026-01-28 13:39:51 +00:00
Yawning Angel
6bbd060352
core/crypto/_subtle: Refactor out common helpers
2026-01-28 22:20:03 +09:00
Yawning Angel
429e8a46db
core/crypto/ed25519: Cosmetic fixes (NFC)
2026-01-28 22:20:03 +09:00
gingerBill
dbd69601e6
Merge branch 'master' of https://github.com/odin-lang/Odin
2026-01-28 11:54:23 +00:00
gingerBill
7135bbdd67
Rename try_copy_* to write_*
2026-01-28 11:54:17 +00:00
gingerBill
0d8b1481ea
Improve try_copy_* logic
2026-01-28 11:53:40 +00:00
gingerBill
117e74cb8b
Fix typo in try_copy_caller_location
2026-01-28 11:43:29 +00:00
gingerBill
29fa8b6582
Merge pull request #6186 from lzurbriggen/ReadDirectoryChangesExW
...
[core:sys/windows] ReadDirectoryChangesExW
2026-01-27 21:31:20 +00:00
Leo Zurbriggen
22ef6ae8c6
add windows.ReadDirectoryChangesExW
2026-01-27 18:11:09 +01:00
gingerBill
9084d7e99b
Fix #6173
2026-01-27 12:27:35 +00:00
gingerBill
92bef45781
Fix #6183
2026-01-27 09:44:52 +00:00