mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-25 15:05:00 -07:00
Merge branch 'master' into sysinfo
This commit is contained in:
+13
-1
@@ -50,7 +50,19 @@ config_darwin() {
|
||||
}
|
||||
|
||||
config_freebsd() {
|
||||
: ${LLVM_CONFIG=/usr/local/bin/llvm-config11}
|
||||
: ${LLVM_CONFIG=}
|
||||
|
||||
if [ ! "$LLVM_CONFIG" ]; then
|
||||
if which llvm-config11 > /dev/null 2>&1; then
|
||||
LLVM_CONFIG=llvm-config11
|
||||
elif which llvm-config12 > /dev/null 2>&1; then
|
||||
LLVM_CONFIG=llvm-config12
|
||||
elif which llvm-config13 > /dev/null 2>&1; then
|
||||
LLVM_CONFIG=llvm-config13
|
||||
else
|
||||
panic "Unable to find LLVM-config"
|
||||
fi
|
||||
fi
|
||||
|
||||
CXXFLAGS="$CXXFLAGS $($LLVM_CONFIG --cxxflags --ldflags)"
|
||||
LDFLAGS="$LDFLAGS $($LLVM_CONFIG --libs core native --system-libs)"
|
||||
|
||||
@@ -596,7 +596,7 @@ absolute_path_from_handle :: proc(fd: Handle) -> (string, Errno) {
|
||||
return "", Errno(get_last_error())
|
||||
}
|
||||
|
||||
path := strings.clone_from_cstring(cstring(&buf[0]), context.temp_allocator)
|
||||
path := strings.clone_from_cstring(cstring(&buf[0]))
|
||||
return path, ERROR_NONE
|
||||
}
|
||||
|
||||
|
||||
+4
-7
@@ -1400,7 +1400,7 @@ bool check_expr_is_stack_variable(Ast *expr) {
|
||||
expr = unparen_expr(expr);
|
||||
Entity *e = entity_of_node(expr);
|
||||
if (e && e->kind == Entity_Variable) {
|
||||
if (e->flags & (EntityFlag_Static|EntityFlag_Using)) {
|
||||
if (e->flags & (EntityFlag_Static|EntityFlag_Using|EntityFlag_ImplicitReference|EntityFlag_ForValue)) {
|
||||
// okay
|
||||
} else if (e->Variable.thread_local_model.len != 0) {
|
||||
// okay
|
||||
@@ -1941,13 +1941,10 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
|
||||
}
|
||||
if (found == nullptr) {
|
||||
entity = alloc_entity_variable(ctx->scope, token, type, EntityState_Resolved);
|
||||
entity->flags |= EntityFlag_ForValue;
|
||||
entity->flags |= EntityFlag_Value;
|
||||
if (i == addressable_index) {
|
||||
if (use_by_reference_for_value) {
|
||||
entity->flags &= ~EntityFlag_Value;
|
||||
} else {
|
||||
entity->flags |= EntityFlag_ForValue;
|
||||
}
|
||||
if (i == addressable_index && use_by_reference_for_value) {
|
||||
entity->flags &= ~EntityFlag_Value;
|
||||
}
|
||||
if (is_soa) {
|
||||
if (i == 0) {
|
||||
|
||||
Vendored
+2
@@ -1,5 +1,7 @@
|
||||
package odin_gl
|
||||
|
||||
GL_DEBUG :: #config(GL_DEBUG, ODIN_DEBUG)
|
||||
|
||||
FALSE :: false
|
||||
TRUE :: true
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -46,7 +46,7 @@ get_last_error_message :: proc() -> (compile_message: string, compile_type: Shad
|
||||
// Shader checking and linking checking are identical
|
||||
// except for calling differently named GL functions
|
||||
// it's a bit ugly looking, but meh
|
||||
when ODIN_DEBUG {
|
||||
when GL_DEBUG {
|
||||
import "core:runtime"
|
||||
|
||||
@private
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ package odin_gl
|
||||
|
||||
#assert(size_of(bool) == size_of(u8))
|
||||
|
||||
when !ODIN_DEBUG {
|
||||
when !GL_DEBUG {
|
||||
// VERSION_1_0
|
||||
CullFace :: proc "c" (mode: u32) { impl_CullFace(mode) }
|
||||
FrontFace :: proc "c" (mode: u32) { impl_FrontFace(mode) }
|
||||
|
||||
Reference in New Issue
Block a user