aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix typogingerBill2021-04-211-2/+2
|
* Add new `-o:<string>` flag as an alternative to `-opt:<integer>`gingerBill2021-04-211-1/+48
|
* Add `-build-mode:llvm-ir` for `-llvm-api` backendgingerBill2021-04-211-0/+2
|
* Add `-doc-format` command for the new .odin-doc file format (to be used to ↵gingerBill2021-04-181-0/+5
| | | | generate documentation tools)
* Minor fixes to platform checking codegingerBill2021-04-111-13/+13
|
* Removed debug codePlatin212021-04-051-1/+0
|
* Adds return values to linker stagesPlatin212021-04-051-42/+63
|
* Helpful error message for invalid `-define:` casesJim Powers2021-03-301-1/+2
|
* fix windowsAtil Kurtulmus2021-03-191-6/+7
|
* fixtypoatil2021-03-191-3/+2
|
* fixtypoatil2021-03-191-1/+1
|
* early memcpyoptatil2021-03-191-3/+17
|
* Add `-strict-style` flag: Enforces code style stricter whilst parsing, ↵gingerBill2021-03-131-0/+16
| | | | requiring such things as trailing commas
* Remove double removal of extension when using the -out option.Jeroen van Rijn2021-03-061-6/+0
| | | | | | | | | | | | | | When specifying the out parameter, the extension was stripped twice. If your path contains a ".", this caused issues. e.g. cd "C:\Repro\Path With a . In The Name\" odin run repro.odin -keep-temp-files -out repro.exe This would cause the files to end up as: "C:\Repro\Path With a.exe", "C:\Repro\Path With a.ll", "C:\Repro\Path With a.bc" and "C:\Repro\Path With a.obj" With this patch it works as expected, with or without a . in the file path.
* Minimize TokenPos size by using `i32` for line/column/offset and file_id ↵gingerBill2021-03-041-1/+1
| | | | | | instead of `String` To make `i32` safe, the parser limits the file size of odin files to a maximum of 2GiB (which will be good enough for the vast vast majority of cases)
* Add `-vet-extra` (checks for unneeded casts and transmutes)gingerBill2021-03-031-0/+11
|
* update essence API headernakst2021-02-261-1/+1
|
* Merge branch 'master' of https://github.com/odin-lang/OdingingerBill2021-02-251-1/+2
|\
| * Merge pull request #852 from Tetralux/fix-dll-macgingerBill2021-02-251-1/+2
| |\ | | | | | | Fix -build-mode:shared on Darwin
| | * Fix -build-mode:shared on DarwinTetralux2021-02-241-1/+2
| | | | | | | | | | | | | | | Apparently, the '__$startup_runtime' symbol to initialize RTTI stuff has three underscores (not two) on Darwin!
* | | Make USE_NEW_LLVM_ABI_SYSTEM the actual behaviour and remove the previous ↵gingerBill2021-02-251-4/+2
|/ / | | | | | | approach
* | Enforce -llvm-api on Mac M1gingerBill2021-02-251-1/+10
| |
* | Remove sret attribute in llvm_abi.cppgingerBill2021-02-251-0/+4
| |
* | Get compiling on Mac Mini M1gingerBill2021-02-241-0/+8
| |
* | Fix new flagsgingerBill2021-02-231-2/+2
| |
* | Add flags `-ignore-warnings` and `-warnings-as-errors`gingerBill2021-02-231-3/+29
|/
* Add extra error checksgingerBill2021-01-181-0/+7
|
* Add `-no-entry-point` to helpgingerBill2021-01-041-0/+6
|
* Update main.cppgingerBill2020-12-061-1/+1
|
* Merge branch 'master' into parser-experimentsgingerBill2020-12-061-183/+378
|\
| * Update package json for new map layout; Correct llvm-api includes for *nixgingerBill2020-11-251-0/+4
| |
| * Update `odin doc` to support multiple package outputs by passing multiple ↵gingerBill2020-11-181-34/+33
| | | | | | | | | | | | | | paths; Replace `-all` with `-short` Example: odin doc core/path core/path/filepath
| * Improve `system_exec_command_line_app` functionality; Restrict `test_*` ↵gingerBill2020-11-171-81/+30
| | | | | | | | procedures to `*_test.odin` files
| * Fix up `system_exec_command_line_app` exit code codegingerBill2020-11-171-4/+18
| |
| * Begin rudimentary work on implementing `odin test` tooling with ↵gingerBill2020-11-171-5/+10
| | | | | | | | `*_test.odin` files
| * Add more documentation for odin doc flagsgingerBill2020-11-171-0/+8
| |
| * Improve flags for `odin doc`gingerBill2020-11-171-1/+17
| |
| * Basic `odin doc` supportgingerBill2020-11-171-0/+23
| |
| * Improve flag handling to check for invalid usesgingerBill2020-11-171-56/+77
| |
| * Add `-show-unused-with-location`gingerBill2020-11-171-64/+34
| |
| * Add `-show-unused` (Shows unused package declarations of all imported packages)gingerBill2020-11-171-0/+159
| | | | | | | | Crude output at the moment but better than nothing
| * Improve logic for x->y() shorthandgingerBill2020-11-151-3/+0
| |
| * Implement custom temporary allocator using ring buffergingerBill2020-11-151-7/+7
| |
| * Add SCOPED_TEMPORARY_BLOCK for temporary allocations within a blockgingerBill2020-11-151-0/+1
| |
| * Begin clarifying allocation patterns by changing from `heap_allocator` to ↵gingerBill2020-11-151-1/+15
| | | | | | | | specific arenas
| * For the sake of consistency, fixed the placement of the -no-entry-point flag ↵F0x1fy2020-11-101-1/+1
| | | | | | | | check.
| * Removed unnecessary newline from previous commit.F0x1fy2020-11-101-1/+0
| |
| * Added -no-entry-point flag and relevant check.F0x1fy2020-11-101-0/+7
| |
| * Fix -build-mode:shared type table on UnixTetralux2020-11-061-37/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #527. Previously on Linux, '__$startup_runtime', the procedure that initializes the type table for runtime typeids, was NOT called when a shared library was loaded by the dynamic loader. This caused the library to not have its type table populated, which caused an assert to fail if you tried to use runtime typeids - like core:fmt, for example. This commit fixes this by calling ld instead of clang, when building a shared library, so that we can pass "-init '__$startup_runtime'" to it, when building a shared library. Try as I might, I could not get clang to correctly pass through the linker flags that I wanted.
| * Fixes text layout now via GitHubPlatin212020-10-311-25/+20
| |