| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Allow -error-pos-style:default as an alias for odin | Jeroen van Rijn | 2022-04-28 | 1 | -2/+2 |
| | | |||||
| * | Make -error-pos-style case-insensitive. | Jeroen van Rijn | 2022-04-28 | 1 | -2/+7 |
| | | |||||
| * | Fix -error-pos-style:unix | Jeroen van Rijn | 2022-04-28 | 1 | -0/+11 |
| | | |||||
| * | Add `intrinsics.type_is_multi_pointer` | gingerBill | 2022-04-27 | 2 | -0/+4 |
| | | |||||
| * | Add `intrinsics.type_field_type` | gingerBill | 2022-04-27 | 2 | -0/+33 |
| | | |||||
| * | Address edge cases. | Jeroen van Rijn | 2022-04-26 | 3 | -45/+99 |
| | | |||||
| * | Remove redundant bit for non-Windows. | Jeroen van Rijn | 2022-04-24 | 1 | -14/+0 |
| | | |||||
| * | Compiler: Allow -out: to not have an extension on *nix for executables (only). | Jeroen van Rijn | 2022-04-24 | 1 | -1/+3 |
| | | |||||
| * | Compiler: Add early error for output path being a directory. | Jeroen van Rijn | 2022-04-24 | 9 | -383/+652 |
| | | | | | | | | | | | | | - Introduce new `Path` type and an array of build paths on the build context. - Resolve input and output paths/files early (before parsing). - Error early if inputs are missing or outputs are directories. - Plumb new file path generation into linker stage instead of its adhoc method. TODO: - Remove more adhoc file path generation in parser and linker stage. - Make intermediate object file generation use new path system. - Round out and robustify Path helper functions. | ||||
| * | Fix #1713 | gingerBill | 2022-04-14 | 2 | -3/+5 |
| | | |||||
| * | Add -help to CI tests. | Jeroen van Rijn | 2022-04-05 | 1 | -2/+10 |
| | | |||||
| * | Give build/run/check/test/doc a `-file` flag. | Jeroen van Rijn | 2022-04-05 | 2 | -89/+145 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A package has canonically always been a directory, but odin allowing you to build a single-file package confused newcomers who didn't understand why they could then not access variables and procedures from another file in the same directory. This change disallows building single-file packages by default, requiring the `-file` flag to acknowledge you understand the nuance. `-help` for these commands also clarifies the difference. ``` W:\Odin>odin build -help odin is a tool for managing Odin source code Usage: odin build [arguments] build Compile directory of .odin files as an executable. One must contain the program's entry point, all must be in the same package. Use `-file` to build a single file instead. Examples: odin build . # Build package in current directory odin build <dir> # Build package in <dir> odin build filename.odin -file # Build single-file package, must contain entry point. Flags -file Tells `odin build` to treat the given file as a self-contained package. This means that `<dir>/a.odin` won't have access to `<dir>/b.odin`'s contents. ``` ``` W:\Odin>odin run examples\demo\demo.odin ERROR: `odin run` takes a package as its first argument. Did you mean `odin run examples\demo\demo.odin -file`? The `-file` flag tells it to treat a file as a self-contained package. ``` | ||||
| * | Add extra help line for define/config. | Jeroen van Rijn | 2022-04-03 | 1 | -0/+1 |
| | | |||||
| * | Merge pull request #1686 from Kelimion/compile-time-assert | gingerBill | 2022-04-02 | 1 | -5/+27 |
| |\ | | | | | Allow optional message for `#assert`. | ||||
| | * | Allow optional message for `#assert`. | Jeroen van Rijn | 2022-04-02 | 1 | -5/+27 |
| | | | |||||
| * | | Add extra checks to atomic intrinsics | gingerBill | 2022-04-02 | 1 | -0/+45 |
| | | | |||||
| * | | `intrinsics.atomic_type_is_lock_free` | gingerBill | 2022-04-02 | 5 | -4/+47 |
| |/ | |||||
| * | Change `intrinsics.Atomic_Memory_Order` fields to use `Ada_Case` rather than ↵ | gingerBill | 2022-03-31 | 2 | -12/+12 |
| | | | | | `snake_case` | ||||
| * | Add checks for memory ordering on fences | gingerBill | 2022-03-31 | 1 | -6/+20 |
| | | |||||
| * | Correct weak handling | gingerBill | 2022-03-31 | 1 | -1/+2 |
| | | |||||
| * | Enforce success failure pairings of `compare_exchange_*_explicit` at compile ↵ | gingerBill | 2022-03-31 | 2 | -9/+96 |
| | | | | | time | ||||
| * | Replace the atomic intrinsics | gingerBill | 2022-03-31 | 6 | -324/+272 |
| | | | | | Matching C11 in style | ||||
| * | Add `intrinsics.wasm_memory_grow` `intrinsics.wasm_memory_size` | gingerBill | 2022-03-30 | 4 | -2/+114 |
| | | |||||
| * | Merge branch 'master' of https://github.com/odin-lang/Odin | gingerBill | 2022-03-30 | 1 | -0/+4 |
| |\ | |||||
| | * | Merge pull request #1671 from colrdavidson/add_nocrt | gingerBill | 2022-03-30 | 1 | -0/+4 |
| | |\ | | | | | | | Make no crt work on Linux | ||||
| | | * | Make no crt work on Linux | Colin Davidson | 2022-03-30 | 1 | -0/+4 |
| | | | | |||||
| * | | | Correct `atomic_cxchg_*` `atomic_cxchgweak_*` intrinsics behaviour to ↵ | gingerBill | 2022-03-30 | 1 | -8/+16 |
| |/ / | | | | | | | monotonic on failure for acq, rel, and acqrel | ||||
| * | | Use `WIFEXITED()` and `WEXITSTATUS()` on Unix `system()` exit code | gitlost | 2022-03-24 | 1 | -0/+3 |
| | | | | | | | | | | | (ensures Odin run returns correct exit code of built executable) Adds test "tests/core/os/test_core_os_exit.odin" (Unix only) | ||||
| * | | Make constant string backing structures use PrivateLinkage compared to ↵ | gingerBill | 2022-03-24 | 1 | -3/+3 |
| | | | | | | | | | InternalLinkage | ||||
| * | | `union #shared_nil` | gingerBill | 2022-03-24 | 9 | -32/+103 |
| | | | | | | | | | This adds a feature to `union` which requires all the variants to have a `nil` value and on assign to the union, checks whether that value is `nil` or not. If the value is `nil`, the union will be `nil` (thus sharing the `nil` value) | ||||
| * | | Fix issue #829 "Compiler crashes when declaring maps with procedure" | gitlost | 2022-03-23 | 1 | -0/+1 |
| | | | | | | | | | | | | | Inits `o->value` in `check_expr_base_internal()` so doesn't accidentally use last (the proc lit was being set to that of previous string) Adds test to "tests/issues" and changes CI to use new "run" shells | ||||
| * | | Merge pull request #1632 from gitlost/const_in_if_#1592 | gingerBill | 2022-03-21 | 3 | -6/+18 |
| |\ \ | | | | | | | Fix issue #1592 "LLVM code gen error when using a constant in an if" | ||||
| | * | | Fix issue #1592 "LLVM code gen error when using a constant in an if" | gitlost | 2022-03-18 | 3 | -6/+18 |
| | | | | | | | | | | | | | | | | | | | | | | Changes lb_build_if_stmt() to return null lbValue if condition is cmpAnd, cmpOr or non-const neg and check in lb_build_if_stmt() to avoid short circuiting if that's the case Adds test to "tests/issues" and adds step in CI to check this dir | ||||
| * | | | Improve procedure group selection based on the minimum number of arguments | gingerBill | 2022-03-18 | 5 | -31/+82 |
| |/ / | |||||
| * | | Fix #1610 | gingerBill | 2022-03-14 | 1 | -29/+21 |
| | | | |||||
| * | | Fix `#1609` | gingerBill | 2022-03-14 | 1 | -0/+6 |
| |/ | |||||
| * | Merge pull request #1505 from jasonKercher/fix_odin_test | gingerBill | 2022-03-14 | 1 | -3/+7 |
| |\ | | | | | fix `odin test` | ||||
| | * | Merge remote-tracking branch 'upstream/master' into fix_odin_test | Jason Kercher | 2022-03-09 | 24 | -204/+640 |
| | |\ | |||||
| | * | | improve entry point check logic | CiD- | 2022-02-17 | 1 | -3/+2 |
| | | | | |||||
| | * | | fix odin test | CiD- | 2022-02-16 | 1 | -0/+5 |
| | | | | |||||
| * | | | Merge branch 'master' into freestanding_amd64 | gingerBill | 2022-03-14 | 16 | -88/+301 |
| |\ \ \ | |||||
| | * | | | #Fix 1615 Replace `llvm.readcyclecounter` with `cntvct_el0` on arm64 | gingerBill | 2022-03-12 | 2 | -7/+16 |
| | | |/ | |/| | |||||
| | * | | Fix #1607 | gingerBill | 2022-03-09 | 1 | -0/+15 |
| | | | | |||||
| | * | | Fix typo | gingerBill | 2022-03-09 | 1 | -1/+1 |
| | | | | |||||
| | * | | Fix typo | gingerBill | 2022-03-09 | 1 | -1/+1 |
| | | | | |||||
| | * | | Replace `#if` with `if` where possible | gingerBill | 2022-03-08 | 1 | -16/+16 |
| | | | | |||||
| | * | | Refactor link flag creation for nix systems | gingerBill | 2022-03-08 | 1 | -26/+31 |
| | | | | |||||
| | * | | Linux: allow 'foreign import' of object files | kstrb | 2022-03-05 | 1 | -2/+2 |
| | | | | |||||
| | * | | Merge pull request #1575 from jockus/fix_relative_slice_len | gingerBill | 2022-03-04 | 3 | -4/+4 |
| | |\ \ | | | | | | | | | Add relative slice to type checks for built in len | ||||
| | | * | | Add relative slice to type checks for built in len | Joakim Hentula | 2022-03-02 | 3 | -4/+4 |
| | | | | | |||||