gingerBill
70ce878dfb
Add -max-error-count:<integer>
2023-04-04 12:11:12 +01:00
Mark Naughton
bd7ffcc048
Change help text to output to stdout
2023-03-29 16:30:02 +01:00
gingerBill
2c4a478987
Add @(extra_linker_flags=<string>)
2023-03-21 13:30:58 +00:00
gingerBill
c1c7128634
Minimize severe memory usage by enforcing the heap_allocator() in places
2023-03-16 15:04:57 +00:00
bumbread
5134d6bc63
rename -no-tls to -no-thread-local
2023-03-14 16:32:42 +11:00
bumbread
5f3b6c9722
Added -no-tls flag
2023-03-13 20:25:13 +11:00
gingerBill
7f3f164736
Update help usage
2023-03-07 15:32:32 +00:00
gingerBill
085db569f1
Add -o:none optimization mode (useful for -debug builds)
2023-03-07 15:31:55 +00:00
gingerBill
b7d75e2f1d
Override to have ansi colors if env has ODIN_TERMINAL=ansi
2023-02-22 12:41:53 +00:00
gingerBill
6aa54cbe9a
Begin work on adding colours to error messages on Windows Terminals
2023-02-22 12:31:51 +00:00
gingerBill
090e30f07b
Make -verbose-errors the default; -terse-errors to disable it
2023-02-22 11:48:10 +00:00
gingerBill
d86df8321c
Fix #2330
2023-02-17 13:08:20 +00:00
gingerBill
eb457d688d
Make static map calls the default; add -dynamic-map-calls
2023-02-03 12:16:58 +00:00
gingerBill
0ce59a9e2b
Use C++ for rather than for_array macro
2023-01-29 11:28:36 +00:00
gingerBill
0b01cfd853
Fix minor possible race condition
2023-01-16 18:18:08 +00:00
gingerBill
b0619980b2
Add /NOIMPLIB /NOEXP on MSVC linker by default when building an executable
2023-01-14 13:42:29 +00:00
gingerBill
9aa9429135
Update debugf usage
2023-01-14 13:42:04 +00:00
gingerBill
9428f792ed
Comment out allocator guards for the time being
2023-01-12 01:09:36 +00:00
gingerBill
e9cfe698ba
Make the heap_allocator just be the permanent_allocator
...
This improves the speed of the compiler with very little memory increase (which surprised me, Ginger Bill)
2023-01-12 00:20:25 +00:00
gingerBill
6ec014e980
Make -threaded-checker the default not (opt out with -no-threaded-checker)
2023-01-11 17:27:06 +00:00
gingerBill
025e87d974
Multithread LLVM procedure generation
2023-01-05 12:39:57 +00:00
gingerBill
0fb3032b73
General improves to alloc_ast_node and other unnecessary checks
2023-01-03 14:45:09 +00:00
gingerBill
252be0fb41
Make all maps use heap allocator implicitly
2023-01-03 11:59:52 +00:00
gingerBill
600f2b7284
Use heap_allocator for all hash set types
2023-01-03 11:53:59 +00:00
gingerBill
c293f5b7eb
Remove unneeded mutex
2023-01-02 16:56:05 +00:00
gingerBill
529383f5b1
Correct a race condition when checking the procedure body
2023-01-02 15:30:04 +00:00
gingerBill
bfdcf900ef
Remove global_ prefix from global_thread_pool_* procedures
2023-01-02 00:56:06 +00:00
gingerBill
5c519f0e8d
Remove the synchronization primitive init/destroy calls
2023-01-01 16:19:21 +00:00
gingerBill
b9a2426e57
Merge branch 'master' into compiler-improvements-2022-12
2022-12-21 23:59:31 +00:00
gingerBill
c1f5be24e2
Remove dead code in the compiler
2022-12-18 22:49:10 +00:00
gingerBill
ac5f5a33e9
gb_internal a lot
2022-12-18 21:17:07 +00:00
Thomas Stibor
1ca7da6914
Enable -out:<filepath> for build and runs with the attribute @(test)
...
According to the odin help command
$ odin help test
...
-out:<filepath>
Set the file name of the outputted executable
Example: -out:foo.exe
building and running tests the executable output filepath shall be
specified. However, the -out parameter is disabled, resulting in error message:
Unknown flag for 'odin test': 'out'
'out' is supported with the following commands:
run, build
Omitting the -out parameter results in default filepath '01.bin' (on Linux).
However, it is desirable for user specifying the output filepath, e.g. by
using this Makefile snippet:
TARGET=main
FLAGS=-warnings-as-errors -verbose-errors
all: run
run:
@odin run . $(FLAGS) -out:$(TARGET)
test:
@odin test . $(FLAGS) -out:$(TARGET)
clean:
@rm -f $(TARGET)
In addition a typo is fixed.
2022-12-14 14:26:32 +01:00
gingerBill
a71daee545
Allow for -use-static-map-calls which generates a get procedure per map; add runtime.map_get
2022-11-08 14:58:05 +00:00
Jeroen van Rijn
9eec9f5788
Add -minimum-os-version flag
...
Allow for Darwin targets to specify the minimum OS version:
e.g. -minimum-os-version:12.0.0
2022-11-01 15:04:44 +01:00
Jeroen van Rijn
2d5779b660
Add missing newline.
2022-11-01 00:47:16 +01:00
Jeroen van Rijn
53a030c65b
Clarify -define help.
2022-11-01 00:38:54 +01:00
Jeroen van Rijn
413f96553a
Remove formerly deprecated -opt flag.
2022-10-28 21:38:20 +02:00
Jeroen van Rijn
85a263130d
Add LLVM > 14 check to main.cpp for Darwin.
2022-10-27 02:55:38 +02:00
gingerBill
af76d26771
Simplify win32 resource file linking
2022-09-07 11:22:43 +01:00
Jeroen van Rijn
fc2cd3e1d5
Add help verb, e.g. odin help build.
2022-09-05 22:28:16 +02:00
Jeroen van Rijn
a5a9347308
Improve error message when you use -file as the verb.
2022-09-05 21:59:56 +02:00
Joakim Hentula
28f440dd9e
Do not remove .rc extension from resource path to prevent expansion to full path assuming it's a directory if a folder with the same name exists in the same folder as the resource file
2022-08-10 14:03:04 +01:00
Ian Lilley
c1c8ceafc2
find windows sdk bin path for rc.exe
2022-08-07 17:52:29 -04:00
Wes Hardee
23842a8950
fix -build-mode:shared on MacOS
2022-06-30 12:40:32 -05:00
gingerBill
8c0c327df9
Improvements to -strict-style and trailing commas
2022-06-13 11:00:13 +01:00
gingerBill
f3aefbc443
@(require_target_feature=<string>) @(enable_target_feature=<string>)
...
require_target_feature - required by the target micro-architecture
enable_target_feature - will be enabled for the specified procedure only
2022-05-30 14:53:12 +01:00
gingerBill
542e45de26
Increase minimum macOS version to 10.12.0
2022-05-18 12:30:26 +01:00
gingerBill
5931e2383b
Remove unneeded #if defined
2022-05-04 16:58:40 +01:00
gingerBill
9f95d6fa65
Minor move around for path sets
2022-05-04 16:17:24 +01:00
gingerBill
982a1aebb3
Remove stray line
2022-05-04 16:14:42 +01:00