Sébastien Marie
25430333ba
vendor: glfw: simplify foreign import
2022-03-02 18:25:22 +00:00
Sébastien Marie
2ca2b32dd0
vendor: botan: simplify foreign import
2022-03-02 18:21:43 +00:00
Joakim Hentula
a5dde78f08
Add relative slice to type checks for built in len
2022-03-02 16:44:33 +00:00
gingerBill
fd415f0b45
Merge pull request #1573 from semarie/openbsd-vendor
...
Openbsd vendor
2022-03-02 12:56:12 +00:00
Lucas Perlind
507722954c
Improve core:fmt formatting
...
* Strings will respect widths smaller than the string's length
* Strings are right justified by default like integers
* Strings accept '-' flag to be left justified
* Booleans will be formatted like strings
* Enums will be formatted like strings
2022-03-02 16:22:16 +11:00
Patric Dexheimer
524d23d45d
Update raylib.odin
2022-03-01 16:55:34 -03:00
Patric Dexheimer
e9ee6f5291
Fixing bindings
...
https://github.com/raysan5/raylib/blob/master/src/raylib.h#L1179
2022-03-01 16:00:18 -03:00
gingerBill
7e5342f41f
Use contextless where possible
dev-2022-03
2022-03-01 15:52:14 +00:00
gingerBill
18607e53cb
Correct alloc_from_memory_block
2022-03-01 15:38:04 +00:00
gingerBill
ed933b3f21
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-03-01 14:49:11 +00:00
gingerBill
49fecbdc5e
Improve error message when there is "no field" found for a large anonymous struct
2022-03-01 14:49:05 +00:00
Jeroen van Rijn
f971126183
[mem] Add missing \n to tracking allocator example.
2022-03-01 13:51:41 +01:00
gingerBill
d4ccb69ccc
Check if directory exists with the same target executable name when building a directory
2022-02-28 21:49:19 +00:00
Sébastien Marie
37b4e0de6c
sdl2: add openbsd support
2022-02-28 16:17:15 +00:00
Sébastien Marie
737f440c7f
glfw: add openbsd support
2022-02-28 16:17:14 +00:00
Sébastien Marie
cba3f1e374
ENet: add openbsd support
2022-02-28 16:17:14 +00:00
gingerBill
a70dde34da
Merge pull request #1565 from semarie/openbsd-pie
...
openbsd: defaults to PIE executable
2022-02-28 16:11:59 +00:00
gingerBill
410b85b5c7
Disallow @(thread_local) on wasm targets
2022-02-28 15:40:00 +00:00
gingerBill
0ae012ba08
Correct comment
2022-02-28 15:37:15 +00:00
gingerBill
fc4eb4152c
Correct calling convention for _startup_runtime
2022-02-28 15:35:10 +00:00
gingerBill
4f3b5d8dcb
Clean up generate_minimum_dependency_set code
2022-02-28 15:29:08 +00:00
Sébastien Marie
f76f70c7cf
openbsd: defaults to PIE executable
...
OpenBSD uses PIE code by default to allow the system to load the binary at a random location.
don't pass -no-pie to preserve this behaviour, and build objects with -fPIC (LLVMRelocPIC).
2022-02-28 15:24:22 +00:00
gingerBill
15d783e920
Enforce -no-entry-point on freestanding targets
2022-02-28 15:13:41 +00: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
2d89faa17c
Add extra checks for -disallow-rtti
2022-02-28 14:35:38 +00:00
gingerBill
dd9843aa21
Merge pull request #1557 from semarie/openbsd-support
...
initial OpenBSD support
2022-02-28 14:23:56 +00:00
gingerBill
882116e358
Only allow -disallow-rtti on freestanding targets
2022-02-28 14:00:44 +00:00
gingerBill
f3adbae1ed
Merge branch 'freestanding_amd64' of https://github.com/odin-lang/Odin into freestanding_amd64
2022-02-28 13:40:06 +00:00
gingerBill
278e239973
Commit rest of code for -disallow-rtti
2022-02-28 13:40:01 +00:00
gingerBill
fda803b46a
Commit rest of code for -disable-rtti
2022-02-28 13:39:27 +00:00
gingerBill
01162e08b5
Add -disallow-rtti
2022-02-28 13:35:29 +00:00
gingerBill
a7ae197a55
Merge branch 'master' into freestanding_amd64
2022-02-28 13:02:31 +00:00
gingerBill
3c72cb67d3
Remove context.user_data
2022-02-28 13:00:32 +00:00
gingerBill
37bba4c0a6
Reorganize error check procedures
2022-02-28 12:45:19 +00:00
gingerBill
ab9d1f99fd
Change #c_vararg checking to only disallow odin calling conventions
2022-02-28 12:36:21 +00:00
gingerBill
45124e4d5c
Merge branch 'master' into freestanding_amd64
2022-02-28 12:32:51 +00:00
gingerBill
7681c43b14
Show error message when something like this is done test: proc() : {}
2022-02-28 12:12:04 +00:00
gingerBill
7e43cd7d97
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-02-28 12:06:42 +00:00
gingerBill
c223fc1766
Correct debug information for local variables
2022-02-28 12:06:35 +00:00
Sébastien Marie
04297bb680
ci: add check for OpenBSD amd64
2022-02-26 14:18:37 +00:00
Sébastien Marie
553292ffd0
vendor: botan: add OpenBSD support
2022-02-26 08:47:58 +00:00
Sébastien Marie
57862846a2
tests/vendor: pass extra linker flags
...
on OpenBSD, botan library is third-party and live in /usr/local which isn't a path included by default in linker.
2022-02-26 08:21:46 +00:00
Sébastien Marie
8e270d3a99
openbsd: poor man implementation for getting executable path
...
it tries to get executable path from argv[0]. it is unreliable and unsecure, but should be fine enough for the considered use-case. it still doesn't address all possible cases.
2022-02-26 08:19:41 +00:00
Sébastien Marie
ae5cb09041
internal_odin_root_dir: readlink could fail
2022-02-25 17:59:57 +00:00
gingerBill
093b2288c3
Merge pull request #1320 from mohd-akram/custom-llvm-config
...
Allow custom LLVM_CONFIG
2022-02-25 15:57:53 +00:00
Mohamed Akram
ffe17a471d
Allow custom LLVM_CONFIG
2022-02-25 19:40:42 +04:00
gingerBill
e9f901b82d
Keep -vet happy
2022-02-25 15:30:24 +00:00
gingerBill
ed3004f8a0
Correct read_console reading
2022-02-25 15:30:05 +00:00
gingerBill
d97df080f9
Revert change
2022-02-25 15:08:02 +00:00
gingerBill
0e5c7e08fc
Change < to <=
2022-02-25 14:54:35 +00:00