aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add `-did-you-mean-limit:N`Jeroen van Rijn46 hours1-0/+24
| | | | | | | | | | | | | | | | | | | | | | | ``` -did-you-mean-limit:<integer> Sets the maximum number of suggestions the compiler provides. Must be an integer >0. If not set, the default limit is 10. ``` e.g. with a limit of 5 ``` W:/Scratch/main.odin(44:7) Error: Undeclared name 'B1' for type 'E' e = .B1 ^^ Suggestion: Did you mean? A23 A02 A19 A20 A21 ... and 25 more ... ```
* Remove -show-import-graph headerJeroen van Rijn4 days1-1/+0
| | | | | This allows you to pipe the output to a file and have a working graph without any editing. (Provided you don't also use additional -flags like `-show-timings`.)
* Clarify -lto help textJeroen van Rijn4 days1-3/+3
|
* Add `-show-import-graph`gingerBill5 days1-0/+92
|
* Add docs for `-lto:<string>`; remove `-lld` and `-radlink` flags docs; with ↵dev-2026-02gingerBill11 days1-6/+26
| | | | `-lto` default to `-use-separate-modules` and `-linker:lld`
* Add ThinLTO support via -lto:thin and -lto:thin-files flagsJesse Meyer14 days1-0/+14
| | | | | | | | | | | - 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>
* Support `-linker:mold` on FreeBSD and NetBSD; Remove `-use-lld` and ↵gingerBill2026-01-301-12/+0
| | | | `-use-radlink`
* Add warning in code generation stage which might cause a possible code gen ↵gingerBill2026-01-221-0/+8
| | | | issue, when non-constant initialization is large
* `-disable-unwind`gingerBill2026-01-151-0/+8
|
* Show `-target` flag usage examples in the helpbogdanov2026-01-081-0/+4
|
* Restore help line for all-bitsJeroen van Rijn2025-12-011-0/+1
|
* Fix `-integer-division-by-zero` modes and document `all-bits`gingerBill2025-12-011-2/+4
|
* Remove `all-bits` from option help text, isn't supported.Jeroen van Rijn2025-11-301-1/+0
|
* moved checking of -vet-unused-procedures and -vet-packages flags toA10293847562025-11-221-17/+16
| | | | after all flags are parsed
* Merge pull request #5860 from harold-b/hb.fix-export-link-libs-fileJeroen van Rijn2025-10-291-11/+11
|\ | | | | Fix `-export-linked-libs-file` issue where it multiple libraries in a single foreign export.
| * Fix `-export-linked-libs-file` issue where it multiple libraries in a single ↵Harold Brenes2025-10-281-11/+11
| | | | | | | | foreign export.
* | Make Karl Zylinski happyJeroen van Rijn2025-10-271-1/+14
|/
* Add target triple and LLVM code mode debug prints (#5839)Jeroen van Rijn2025-10-221-0/+1
|
* Merge pull request #5797 from harold-b/hb.export-linked-libsgingerBill2025-10-121-0/+71
|\ | | | | Add build flag to export the linked libraries
| * Fix `-export-linked-libs-file` system lib checkHarold Brenes2025-10-121-1/+1
| |
| * Use exact value to determine system linked libs with `-export-linked-libs-file`Harold Brenes2025-10-121-2/+2
| |
| * Add `-export-linked-libs-file` build flag.Harold Brenes2025-10-121-0/+71
| | | | | | | | This build flag writes a list of the libraries that were linked during the build to the specified file.
* | Make `-target-features` flag support disabling of a featureYhya Ibrahim2025-10-111-0/+5
|/
* Rename to `-build-diagnostics`gingerBill2025-09-291-4/+4
|
* Add `-para-poly-diagnostics`gingerBill2025-09-291-0/+7
|
* -fix: typosamwega2025-09-261-1/+1
|
* Merge pull request #5632 from kalsprite/x386gingerBill2025-09-181-0/+5
|\ | | | | windows i386 support
| * revert to working buildJon Lipstate2025-09-031-3/+2
| |
| * add tls when we have crtJon Lipstate2025-09-031-2/+3
| |
| * windows i386 supportJon Lipstate2025-08-291-0/+5
| |
* | More improvements to minimize code gen sizegingerBill2025-09-181-0/+6
| |
* | Try moving parapoly procs into a separate module when doing weak ↵gingerBill2025-09-181-0/+5
| | | | | | | | monomorphization
* | Multithread min dep set by removing the set itselfgingerBill2025-09-101-1/+2
|/
* Add `-integer-division-by-zero:all-bits`gingerBill2025-08-101-0/+1
|
* Update src/main.cppgingerBill2025-08-081-1/+1
| | | Co-authored-by: Itzik Shneorson <35134559+itziksn@users.noreply.github.com>
* Add `-integer-division-by-zero:self`gingerBill2025-08-081-3/+6
|
* Define the behaviour of integer division by zerogingerBill2025-08-081-1/+29
|
* Add `string16` and `cstring16` (UTF-16 based strings)gingerBill2025-08-021-4/+4
|
* Remove old flag from helpJeroen van Rijn2025-07-011-6/+0
|
* [source-code-locations] - added options to show, obfuscate, and hide source ↵Hayden Gray2025-06-261-3/+27
| | | | code locations (#5412)
* Print timings to stderr instead of stdoutFeoramund2025-06-041-52/+52
| | | | | | This is in line with other diagnostic messages. Fixes #4642
* Forbid multiple uses of `-sanitize`Feoramund2025-06-031-1/+5
| | | | | | `clang` does not allow this. Fixes #4354
* Merge pull request #5255 from Feoramund/build-mode-test-all-packagesJeroen van Rijn2025-06-021-1/+7
|\ | | | | Let `-test-all-packages` work with `-build-mode:test`
| * Let `-test-all-packages` work with `-build-mode:test`Feoramund2025-06-021-1/+7
| | | | | | | | Fixes #3930
* | Correct spelling in `odin doc -help` outputBambo-Borris2025-06-021-1/+1
|/
* Also clean up .dSym on DarwinJeroen van Rijn2025-06-011-5/+7
|
* Also delete .pdb unless -keep-executable is suppliedJeroen van Rijn2025-06-011-0/+8
|
* Add comments to `builtin.odin`, documenting ODIN_* constants. (#5218)Jeroen van Rijn2025-05-261-5/+5
| | | And document constants not previously listed.
* Rename -keep-test-executable to -keep-executableJeroen van Rijn2025-05-231-10/+10
|
* your yourJeroen van Rijn2025-05-231-1/+1
|