gingerBill
e2ba8ff6e6
Fix #4530
2024-12-02 11:23:55 +00:00
gingerBill
e8f231ee72
Merge pull request #4437 from dpoetzschke/fix/windows-args-escaping
...
fix windows args parser problem from issue #4393
2024-11-06 13:08:55 +00:00
Dominik Pötzschke
f1de4804a5
added braces
2024-10-31 16:18:12 +01:00
Dominik Pötzschke
d74f215490
adjust memory allocation
2024-10-30 22:30:56 +01:00
Dominik Pötzschke
6f966f30aa
fix: fix windows params bug
2024-10-30 11:24:50 +01:00
bobsayshilol
c1496ab6c0
Fix passing nullptr to args marked as non-null
...
libstdc++'s |memcpy| and |memset| both state that their inputs should
never be a nullptr since this matches the C spec. Some compilers act on
these hints, so we shouldn't unconditionally call these as it would
signal to the compiler that they can't be nullptrs.
As an example, the following code will always call |do_something()|
when compiled with optimisations since GCC version 4.9:
```
void clear(void *ptr, int size) {
memset(ptr, 0, size);
}
void example(void *ptr, int size) {
clear(ptr, size);
if (ptr != nullptr) do_something();
}
```
2024-10-27 22:02:34 +00:00
gingerBill
9782d7b928
Merge pull request #3896 from odin-lang/cached-builds
...
Internal Cached Builds
2024-07-09 15:27:45 +01:00
gingerBill
87ac68fcf2
Add -internal-cached
2024-07-08 23:39:14 +01:00
Laytan Laats
9ff77397c6
implement temporary_directory on non-windows
2024-07-08 18:58:17 +02:00
gingerBill
7dd4cccce7
Use a temporary directory for -use-separate-modules
...
Windows only currently
2024-07-08 14:21:07 +01:00
gingerBill
595726e6c5
Merge pull request #3369 from joakin/fix-dynamic-library-from-vendor-on-linux
...
Fix vendor dynamic libraries not working on Linux
2024-05-03 17:14:32 +01:00
Thomas la Cour
0a16f7a6f1
normalize_path
2024-04-20 09:37:30 +02:00
joakin
60ef4fda4d
Recognize dynamic library names like libraylib.so.5.0.0
2024-04-19 13:35:53 +02:00
gingerBill
8a0f9ae108
Print to string buffer before printing errors
2024-04-16 13:15:23 +01:00
gingerBill
36644a3c09
Add template specialization for compared against "" with String internally
2024-04-15 12:43:45 +01:00
gingerBill
9a2fc6cf4c
Serialize errors to make them sortable, deterministic, and generally more control
2024-03-19 15:34:29 +00:00
gingerBill
97be7feb99
Add list of C identifier suggestions (types and keywords)
2024-03-18 17:32:26 +00:00
gingerBill
00344e1323
Add check to people trying to foreign import C files.
2024-03-18 16:56:01 +00:00
gingerBill
5c4485f657
Add #load_directory(path: string) > []runtime.Load_Directory_File
2024-02-09 15:18:29 +00:00
Jeroen van Rijn
8a56bb3b5f
Merge pull request #2944 from Kelimion/microarch-help
...
Add -microarch:?
2023-11-22 14:13:57 +01:00
Jeroen van Rijn
25e9255157
Fix string_extension_position
2023-11-21 16:53:14 +01:00
Jeroen van Rijn
e19460cbd7
Add -microarch:?
2023-11-10 19:37:08 +01:00
gingerBill
48a64a2c88
Minor fix to string_compare
2023-01-18 16:48:11 +00:00
gingerBill
7f3795a231
Improve odin doc string printing ( Fixes #2246 )
2023-01-18 16:17:02 +00:00
gingerBill
5c519f0e8d
Remove the synchronization primitive init/destroy calls
2023-01-01 16:19:21 +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
Ian Lilley
c1c8ceafc2
find windows sdk bin path for rc.exe
2022-08-07 17:52:29 -04: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
Jeroen van Rijn
a5342a0126
Address edge cases.
2022-04-26 13:14:09 +02:00
Jeroen van Rijn
3cab2592c3
Compiler: Add early error for output path being a directory.
...
- 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.
2022-04-24 13:37:26 +02:00
gingerBill
09e4fff5b1
-target-features:<string>
...
This just passes a string directly to the LLVM features string
2022-02-28 15:08:50 +00:00
gingerBill
f8afda3b22
Add more objc attributes
2022-02-11 22:54:51 +00:00
gingerBill
78815778ee
Add //+private file to complement //+private (//+private package)
2022-02-02 15:28:49 +00:00
gingerBill
9a5216921c
Add wasi_wasm32
2021-10-31 01:08:17 +00:00
gingerBill
aa8777ee47
Change the implementation of Arena to use virtual memory, and remove the old gbArena code
2021-08-26 15:38:34 +01:00
gingerBill
7845769d4b
Remove unused code
2021-08-19 15:03:10 +01:00
gingerBill
be76da2c90
Begin optimizing tokenizer; Replace gb_utf8_decode with utf8_decode (CC but easier to change later)
2021-08-01 23:56:17 +01:00
gingerBill
a5d6fda433
Define which mutexes are blocking and recursive explicitly
2021-07-27 23:14:01 +01:00
gingerBill
35230b1a11
Add "Suggestion: Did you mean?" for selector expression typos
2021-07-08 23:15:07 +01:00
gingerBill
f1e13bdddb
Prefix named types with package name in debug types
2021-03-23 20:45:39 +00:00
gingerBill
fea8c63ab3
Fix string_compare
2020-11-17 12:19:28 +00:00
gingerBill
0be6ddc7e2
Add -microarch:<string> (e.g. -microarch:native)
2020-10-20 12:25:11 +01:00
gingerBill
b8d33165c9
Add -target:<string> fuzzy checking with "Did you mean" message
2020-06-10 12:59:54 +01:00
gingerBill
ef539696b9
Strip carriage return \r from raw string literals
2020-05-23 11:39:29 +01:00
gingerBill
0b16ed7c85
Use memcmp for str_eq
2020-05-21 11:05:38 +01:00
gingerBill
e1da631d26
General functionality without context
2020-03-04 22:09:58 +00:00
gingerBill
9db81498d8
Make the string type elements "immutable", akin to char const * in C
...
Allows for extra security and optimization benefits
2019-12-01 14:10:59 +00:00
gingerBill
37e3e081c6
Update microsoft_craziness.h to work correctly with the rest of the codebase (and not use WIN32_LEAN_AND_MEAN)
2019-11-27 15:18:32 +00:00
gingerBill
9f0a28017d
Fix typo in string_to_string16 #444
2019-10-20 10:50:18 +01:00