gingerBill
564d5af8b2
Default to -o:none for all builds
2024-07-08 16:12:22 +01:00
gingerBill
2a219fa830
Correct -use-separate-module behaviour
2024-07-08 15:13:40 +01:00
gingerBill
8491e2491c
Experiment with different uses of -use-separate-modules
2024-07-08 14:48:59 +01:00
gingerBill
86c58167ed
Add -print-linker-flags
2024-07-08 10:40:04 +01:00
gingerBill
88c9512d5f
Merge pull request #3828 from laytan/re-raise-signals-from-odin-run
...
re-raise signals from the `odin run` binary
2024-07-06 18:55:37 +01:00
Jeroen van Rijn
f6892d2236
Fix help text.
2024-07-03 19:30:25 +02:00
gingerBill
af3401631a
Remove the -disallow-do aspect from -strict-style
2024-06-29 22:48:43 +01:00
gingerBill
b1a1da6618
Add -vet-tabs
2024-06-29 19:54:31 +01:00
gingerBill
90244a0849
Fix accidental deletion in the -strict-style help comment
2024-06-29 19:41:45 +01:00
gingerBill
f64d1df90b
Add note regarding -strict-style
2024-06-29 19:27:26 +01:00
gingerBill
888bf28076
-strict-style implies -disallow-do
2024-06-29 19:26:11 +01:00
gingerBill
835e8bf87a
Update -strict-style
2024-06-29 19:15:33 +01:00
gingerBill
d6b8544f50
Add internal flag for testing stuff
2024-06-29 12:04:31 +01:00
gingerBill
704530497b
Rename -vet-identical-cast to -vet-cast; with minor code clean up
2024-06-29 11:44:45 +01:00
Feoramund
6496432b80
Add -vet-identical-cast
2024-06-28 23:14:03 -04:00
Laytan Laats
fa5be93da2
re-raise signals from the odin run binary
2024-06-28 19:33:34 +02:00
gingerBill
17efb87eef
Add -custom-attribute
2024-06-28 11:44:39 +01:00
Jeroen van Rijn
9f696a646f
Add -build-mode:test.
2024-06-21 16:02:55 +02:00
gingerBill
23351ca8be
Merge pull request #3137 from laytan/show-defineable
...
Add flags to show/export defineable values and warn if a -define is unused in the project
2024-06-20 11:45:52 +01:00
Feoramund
c560553c21
Fix compiler silently returning if parse_packages fails
2024-06-13 13:01:51 -04:00
Laytan Laats
315695b4f8
collect and show docs of defineables
2024-06-07 15:08:41 +02:00
Laytan Laats
fa08690686
explicit integer conversions
2024-06-06 19:49:51 +02:00
Laytan Laats
b818a77131
check if -define is actually used
2024-06-06 19:46:01 +02:00
Laytan Laats
9a95049393
-show-defineables and -export-defineables
2024-06-06 19:44:54 +02:00
laytan
08382cb05d
orca windows
2024-06-05 19:28:40 +02:00
Laytan Laats
8455e159f5
improve orca target
2024-06-05 20:57:39 +02:00
gingerBill
afcccfdec5
Merge pull request #3615 from puzzleddev/export-dependencies
...
Add build flag to export dependencies.
2024-06-04 15:40:54 +01:00
Jeroen van Rijn
c3b94b9e1d
Merge pull request #3646 from Feoramund/multi-test
...
Refactor the test runner
2024-06-04 13:23:52 +02:00
Feoramund
f030603f0d
Fix #3660
...
This also prevents a segfault if you do `odin build .odin -file`
2024-06-02 16:47:46 -04:00
Feoramund
cb8faf5b74
Remove -test-name in favor of test runner option
...
`-define:ODIN_TEST_NAMES=...` is capable of selecting test by package
and name or name only, with the ability to access packages included by
`-all-packages`.
2024-06-02 14:54:32 -04:00
tim4242
0cba33075f
Add the option to export dependencies as JSON.
2024-05-24 13:44:38 +02:00
tim4242
8664b88c8f
Improved depdendency formatting to support paths containing spaces
2024-05-24 01:20:45 +02:00
tim4242
7934e92d14
Initial dependency file generation
2024-05-24 01:04:41 +02:00
gingerBill
e71cd871c4
Reimplement -build-mode:static/-build-mode:lib
2024-05-16 14:27:05 +01:00
Laytan Laats
bb58926b7a
llvm 18: general unix and darwin specifics
2024-05-07 16:52:46 +02:00
Laytan Laats
25f1d0906d
compiler: improve target features support
2024-05-02 00:59:52 +02:00
gingerBill
75fcd50b9a
Merge branch 'master' of https://github.com/odin-lang/Odin
2024-04-22 18:41:51 +01:00
gingerBill
c6a446fe87
Add check for build. and run. typos
2024-04-22 18:41:48 +01:00
Thomas la Cour
ebb1a07dd0
spelling
2024-04-20 09:37:30 +02:00
gingerBill
ece78d22d2
Add -no-type-assert and ODIN_NO_TYPE_ASSERT
2024-04-18 11:22:31 +01:00
Laytan Laats
9f97056c14
add 'odin root' command
2024-04-13 20:08:57 +02:00
gingerBill
b6d2ac11b8
Add -vet-unused-variables and `-vet-unused-imports (-vet-unused is both)
2024-04-11 15:24:36 +01:00
gingerBill
0e5a482c42
Default to "smart" linker behaviour; Add -min-link-libs to use minimize link libs if wanted
2024-04-04 16:11:26 +01:00
gingerBill
a9bfb3ac2e
Clarity warning and error printing
2024-04-02 23:39:14 +01:00
Laytan Laats
b26a685b76
darwin: be less annoying about "incompatible" library versions
...
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).
2024-03-25 22:11:20 +01:00
Laytan Laats
15c1e8274d
darwin: fix ld warnings and set minimum os version
2024-03-23 22:12:05 +01:00
gingerBill
433109ff52
Replace gb_exit(1) with exit_with_errors() where appropriate
2024-03-19 16:29:45 +00:00
gingerBill
ba428fecdb
Add -json-errors
2024-03-19 16:25:09 +00:00
gingerBill
9a2fc6cf4c
Serialize errors to make them sortable, deterministic, and generally more control
2024-03-19 15:34:29 +00:00
gingerBill
a08250ac5b
Improve error handling for missing library collection provided by the compiler
2024-02-07 17:15:59 +00:00