Commit Graph

642 Commits

Author SHA1 Message Date
gingerBill
867af80bff Add -use-single-module 2025-01-22 13:26:35 +00:00
flysand7
4f0206ce08 Added compile-time checks for thread locals with -no-crt
Now using any thread-local variables with -no-crt enabled
will cause a compiler error, unless -no-thread-local is
given.

Also fixed a minor typo in a comment.
2025-01-17 01:12:23 +03:00
Harold Brenes
794e812932 Fixes crash when unused defines are used in conjunction with -ignore-warnings. 2025-01-15 02:04:49 -05:00
gingerBill
bca08d3b85 Make -no-dynamic-literals the default now 2025-01-05 13:33:06 +00:00
fleandro
6ff81b6e4c make -export-dependencies:json emit valid json 2024-12-23 01:03:51 +00:00
gingerBill
b36a81ef53 ABI change: for indirect parameters size_of <= 16, do callee stack copy 2024-12-05 10:49:39 +00:00
gingerBill
44124cb639 Merge pull request #4440 from 0dminnimda/support_llvm19
Add support for llvm version 19
2024-11-27 21:15:59 +00:00
gingerBill
f213b8e5cf Allow for odin help build etc 2024-11-25 14:04:17 +00:00
gingerBill
3229f4668d Improve odin help -foo usage 2024-11-18 23:35:10 +00:00
gingerBill
2af014b960 Make lowercase 2024-11-14 17:42:21 +00:00
gingerBill
b9886dfcc7 Add -linker:<string> to replace -lld and -radlink 2024-11-14 17:04:45 +00:00
gingerBill
8de6909198 Disallow -lld and -radlink to be used together 2024-11-14 16:35:48 +00:00
gingerBill
21a25bddde Add -radlink 2024-11-14 16:32:26 +00:00
bayo-code
8585fdf25f Added support for odin build -target:? 2024-11-11 04:16:01 +01:00
bayo-code
d5b221f972 Revert "List the supported targets using odin targets"
This reverts commit b589e3c499.
2024-11-11 04:09:53 +01:00
bayo-code
b589e3c499 List the supported targets using odin targets 2024-11-10 07:16:13 +01:00
gingerBill
20a8c97d68 Remove duplicates in -defineables 2024-11-08 11:24:00 +00:00
Jeroen van Rijn
deb562613f Phrasing! 2024-11-07 13:13:58 +01:00
Jeroen van Rijn
925d8749e0 Suggest -microarch:native if popcnt instruction is missing.
Fixes #4453.
2024-11-07 12:56:49 +01:00
0dminnimda
d04ff6951a src/main.cpp: apply suggestion
Co-authored-by: Laytan <laytanlaats@hotmail.com>
2024-11-02 21:59:15 +03:00
0dminnimda
d06fcbfdd3 Update version in more places 2024-11-02 00:53:13 +03:00
peachey2k2
04b000370b Add "-build-mode:dynamic" to the "odin help build" output 2024-11-01 15:51:18 +03:00
Lucas Perlind
28b26043fb cached.cpp: Improve internal cached robustness
Do not memory map files; Windows cannot write to a file that is memory
mapped.
Write cache after llvm building. This ensures the cache won't have a
false positive if llvm fails.
2024-10-22 18:05:01 +11:00
gingerBill
21d0b073b1 Sort flags on odin build -help - #4329 2024-10-02 15:43:13 +01:00
olimpiu
5d57fe77be Fixed confusing (and incorrect) warning
Verbose errors *is* the new default
2024-09-30 20:46:03 -04:00
Laytan Laats
642ecc363b fix errors not being printed after parse warnings
Fixes #4299
2024-09-29 11:04:37 +02:00
gingerBill
09588836e7 Add -vet-unused-procedures 2024-09-17 11:33:42 +01:00
gingerBill
19c1ed154c Add -vet-packages:<comma-separated-string-array> 2024-09-17 11:01:26 +01:00
InKryption
1025b9e6c0 Enable -out:<filename> for doc subcommand
The logic for writing the .odin-doc file to the value assigned
to out_filepath already exists, this just enables it on the CLI
frontend.
2024-09-11 21:11:32 +02:00
gingerBill
b442ea8601 Merge pull request #4206 from laytan/improve-linking-shared-libraries
Improve linking shared libraries
2024-09-10 21:59:21 +01:00
gingerBill
0dddd2b97e Add internal flag
`-internal-fast-isel`
2024-09-09 14:39:53 +01:00
Laytan
0aa971207b add -no-rpath 2024-09-04 22:38:19 +02:00
Dimension4
b24157738f Add missing help text for -build-mode:test 2024-09-02 23:40:13 +02:00
Laytan
28c643d23f riscv compiler support 2024-09-01 21:42:47 +02:00
Laytan
ca6ef95b03 add support for linux_riscv64 and freestanding_riscv64 2024-08-20 14:06:40 +02:00
FourteenBrush
12813e5d48 Fix 'odin [run|test] --' giving a compiler out of bounds 2024-08-14 21:37:40 +02:00
Jeroen van Rijn
7237f9c9f8 Help text default -o:none -> -o:minimal. 2024-07-19 20:47:26 +02:00
gingerBill
bd562116b8 Minor change to an internal flag 2024-07-15 15:08:26 +01:00
gingerBill
1e37eaf54d Begin work for bit_set[...; [N]T] (not working) 2024-07-15 14:49:20 +01:00
gingerBill
664a71454b -use-separate-modules default on Windows only 2024-07-15 02:53:01 +01:00
gingerBill
c64702ae5a Make -use-separate-modules the default behaviour for -o:none and -o:minimal 2024-07-15 00:43:46 +01:00
gingerBill
3311ea1c76 Keep MSVC happy with secure versions of C calls 2024-07-15 00:38:10 +01:00
gingerBill
e7d37607ef Fix parameter to none 2024-07-14 16:05:47 +01:00
gingerBill
6feace2351 Add pseudo flag -fast-build 2024-07-14 16:05:07 +01:00
Jeroen van Rijn
8dc4eca4d2 Allow using precompiled .res file. 2024-07-10 14:25:18 +02:00
gingerBill
14dc3598b4 Add gb_internal to procedures 2024-07-09 14:33:01 +01:00
gingerBill
886ee66e7f Cache files, env, and args 2024-07-09 14:16:56 +01:00
gingerBill
ccdad8b8dd Add odin clear-cache 2024-07-09 13:31:54 +01:00
gingerBill
87ac68fcf2 Add -internal-cached 2024-07-08 23:39:14 +01:00
gingerBill
48aef50164 Add #load cache files to -export-dependencies:json 2024-07-08 17:46:10 +01:00