aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Default to "smart" linker behaviour; Add `-min-link-libs` to use minimize ↵gingerBill2024-04-041-0/+13
| | | | link libs if wanted
* Clarity warning and error printinggingerBill2024-04-021-0/+7
|
* darwin: be less annoying about "incompatible" library versionsLaytan Laats2024-03-251-1/+2
| | | | | | | | | | | | | After #3316 we set a default minimum version, now this will warn if you link with a library that is targeting later versions. This might be a bit annoying, especially when the user hasn't actually given Odin a minimum target. So this PR makes these warnings only show when you explicitly give a target version (afaik that is the only thing that -mmacosx-min-version actually does for us because we don't use it to compile anything, just to link).
* darwin: fix ld warnings and set minimum os versionLaytan Laats2024-03-231-1/+1
|
* Replace `gb_exit(1)` with `exit_with_errors()` where appropriategingerBill2024-03-191-1/+1
|
* Add `-json-errors`gingerBill2024-03-191-0/+10
|
* Serialize errors to make them sortable, deterministic, and generally more ↵gingerBill2024-03-191-1/+3
| | | | control
* Improve error handling for missing library collection provided by the compilergingerBill2024-02-071-7/+17
|
* Make run args take the first '--' as the start of the args, instead of the ↵flysand72024-02-041-4/+8
| | | | last '--'
* Merge pull request #3141 from laytan/add-all-packages-flag-for-testsgingerBill2024-01-311-1/+6
|\ | | | | Add `odin test -all-packages` to be able to test an entire project
| * Add `odin test -all-packages` to be able to test an entire projectLaytan Laats2024-01-261-1/+6
| |
* | `-default-to-panic-allocator`gingerBill2024-01-281-0/+14
| |
* | Move `core:runtime` to `base:runtime`; keep alias aroundgingerBill2024-01-281-0/+1
|/
* Expand -subsystem option on WindowsJeroen van Rijn2024-01-181-8/+35
| | | | | | | | W:\Odin>odin run sketch.odin -file -subsystem:foo Invalid -subsystem string, got oo. Expected one of: BOOT_APPLICATION, CONSOLE (default), EFI_APPLICATION, EFI_BOOT_SERVICE_DRIVER, EFI_ROM, EFI_RUNTIME_DRIVER, NATIVE, POSIX, WINDOWS (or WINDOW), WINDOWSCE We now also set the constant ODIN_WINDOWS_SUBSYSTEM, which is "" for non-Windows targets.
* Clean up error block usagegingerBill2024-01-051-0/+2
|
* Add `-obfuscate-source-code-locations`gingerBill2023-12-131-0/+12
|
* Silence writable string warnings when compiling Odin on Linux.Jeroen van Rijn2023-12-031-2/+2
|
* Fix oversights, apply minor improvementsTarık B2023-11-251-15/+16
|
* Apply consistent usage of third-person singularTarık B2023-11-251-43/+43
|
* Standardize to consistent 3-space indentation for inline commentsTarık B2023-11-251-24/+24
| | | | | Inline comments in a cohesive block of multiple lines are aligned with 3-space indentation to the length of the longest line.
* Remove redundant exampleTarık B2023-11-251-1/+0
|
* Fix newly introduced capitalization and punctuation errorTarık B2023-11-251-1/+1
|
* Increase indentation for -vet extra check listingTarık B2023-11-251-3/+3
|
* Unify showing of available optionsTarık B2023-11-251-15/+21
|
* Capitalize first word of sentencesTarık B2023-11-251-10/+10
|
* Add period at the end of sentences.Tarık B2023-11-251-104/+104
|
* Fix typoTarık B2023-11-251-1/+1
|
* Fix indentationTarık B2023-11-251-3/+3
|
* Add -microarch:? to help text.Jeroen van Rijn2023-11-111-0/+1
|
* Re-add `break`.Jeroen van Rijn2023-11-101-0/+1
|
* Facored out `get_default_microarchitecture`Jeroen van Rijn2023-11-101-6/+9
| | | | Moved `generic` -> `x86-64-v2` selection into its own procedure so that `llvm_backend.cpp` and `main.cpp` can share the same logic.
* Add -microarch:?Jeroen van Rijn2023-11-101-0/+39
|
* Support LLVM >=17.0.1 on Darwin and Linuxjcmdln2023-10-111-2/+2
|
* Remove `-vet-extra`gingerBill2023-09-301-17/+1
|
* Fix wrong import due to grep-replacegingerBill2023-09-211-1/+1
|
* Update ABI breaking changes for `f16` types (due to LLVM 15+)gingerBill2023-09-211-1/+0
|
* Add `-o:aggressive` for LLVM 17gingerBill2023-09-211-1/+21
|
* Support `-sanitize:<string>` for `address`, `memory`, `thread` for LLVM 17gingerBill2023-09-211-0/+19
|
* Update to LLVM-17gingerBill2023-09-191-1/+1
|
* Add experimental `-subtarget:ios`gingerBill2023-08-081-1/+39
|
* Toggle tilde backend in the build scriptgingerBill2023-08-031-1/+1
|
* Merge branch 'master' into tildegingerBill2023-08-031-39/+89
|\
| * Add -show-system-calls flag info to cli usage helpHasan Yasin Ozturk2023-08-011-5/+9
| |
| * Remove `-strict-style-init-only`gingerBill2023-08-011-18/+1
| |
| * Replace a lot of warnings with errors; remove deprecated stuffgingerBill2023-08-011-7/+0
| |
| * Add `-vet-style` and `-vet-semicolon`gingerBill2023-08-011-5/+25
| |
| * Add separate `-vet` flags; `-vet-using-*` flags; `//+vet` file flagsgingerBill2023-07-311-7/+50
| |
* | Hook up Tilde to the linker codegingerBill2023-07-241-5/+13
| |
* | Move linker code into separate filegingerBill2023-07-241-416/+9
| |
* | Rename tilde_backend* files to tilde*gingerBill2023-07-191-1/+1
| |