Try to debug the MacOS thing
This commit is contained in:
parent
a089706de0
commit
6faf9f46a8
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
* text=auto
|
||||||
|
|
||||||
|
*.c text eol=lf
|
||||||
|
*.h text eol=lf
|
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./project.sh test all
|
./project.sh test all
|
||||||
macos_build_and_test:
|
macos_build_and_test:
|
||||||
runs-on: macos-latest
|
runs-on: macos-15
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -46,10 +46,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: System information
|
# - name: System information
|
||||||
run: |
|
# run: |
|
||||||
systeminfo
|
# systeminfo
|
||||||
clang -v
|
# clang -v
|
||||||
- name: Build and test
|
- name: Build and test
|
||||||
run: |
|
run: |
|
||||||
./project.bat test all
|
./project.bat test all
|
||||||
|
@ -384,8 +384,6 @@ fn void run_tests(Arena* arena, TestOptions const * const test_options, char** e
|
|||||||
|
|
||||||
fn void entry_point(int argc, char* argv[], char* envp[])
|
fn void entry_point(int argc, char* argv[], char* envp[])
|
||||||
{
|
{
|
||||||
calibrate_cpu_timer();
|
|
||||||
|
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
{
|
{
|
||||||
print("Expected some arguments\n");
|
print("Expected some arguments\n");
|
||||||
|
7734
bootstrap/lib.h
7734
bootstrap/lib.h
File diff suppressed because it is too large
Load Diff
@ -2332,7 +2332,6 @@ fn Type* thread_type_get(Thread* thread, TypeIndex type_index)
|
|||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn DebugType* thread_debug_type_get(Thread* thread, DebugTypeIndex debug_type_index)
|
fn DebugType* thread_debug_type_get(Thread* thread, DebugTypeIndex debug_type_index)
|
||||||
{
|
{
|
||||||
assert(validi(debug_type_index));
|
assert(validi(debug_type_index));
|
||||||
@ -3180,7 +3179,6 @@ fn s64 ip_generic_find_slot(GenericInternPool* pool, Thread* thread, u32 item_in
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn GenericInternPoolBufferResult ip_DebugType_add_to_buffer(Thread* thread)
|
fn GenericInternPoolBufferResult ip_DebugType_add_to_buffer(Thread* thread)
|
||||||
{
|
{
|
||||||
auto* result = vb_add(&thread->buffer.debug_types, 1);
|
auto* result = vb_add(&thread->buffer.debug_types, 1);
|
||||||
@ -4073,7 +4071,6 @@ fn NodeIndex return_get_value(Thread* thread, Node* node)
|
|||||||
// return result;
|
// return result;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
// fn s64 intern_pool_find_debug_type_slot(Thread* thread, const DebugType* type, Hash32 hash)
|
// fn s64 intern_pool_find_debug_type_slot(Thread* thread, const DebugType* type, Hash32 hash)
|
||||||
// {
|
// {
|
||||||
// auto it_index = original_index;
|
// auto it_index = original_index;
|
||||||
@ -4226,7 +4223,6 @@ fn NodeIndex return_get_value(Thread* thread, Node* node)
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|
||||||
// fn TypeGetOrPut type_make_tuple(Thread* thread, Slice(TypeIndex) types)
|
// fn TypeGetOrPut type_make_tuple(Thread* thread, Slice(TypeIndex) types)
|
||||||
// {
|
// {
|
||||||
// Type type;
|
// Type type;
|
||||||
@ -4653,7 +4649,6 @@ may_be_unused fn String type_id_to_string(Type* type)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn Hash64 hash_type(Thread* thread, Type* type)
|
fn Hash64 hash_type(Thread* thread, Type* type)
|
||||||
{
|
{
|
||||||
Hash64 hash = type->hash;
|
Hash64 hash = type->hash;
|
||||||
@ -5249,7 +5244,6 @@ fn TypePair analyze_type(Thread* thread, Parser* parser, String src)
|
|||||||
i += 1;
|
i += 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (decimal_digit_count)
|
if (decimal_digit_count)
|
||||||
{
|
{
|
||||||
parser->i += 1;
|
parser->i += 1;
|
||||||
@ -5632,7 +5626,6 @@ fn NodeIndex analyze_addition(Thread* thread, Parser* parser, FunctionBuilder* b
|
|||||||
// node_set_input(thread, new_node_index, 2, right);
|
// node_set_input(thread, new_node_index, 2, right);
|
||||||
todo();
|
todo();
|
||||||
|
|
||||||
|
|
||||||
// print("Addition new node #{u32}\n", new_node_index.index);
|
// print("Addition new node #{u32}\n", new_node_index.index);
|
||||||
// print("Left code:\n```\n{s}\n```\n", s_get_slice(u8, src, parser->i, src.length));
|
// print("Left code:\n```\n{s}\n```\n", s_get_slice(u8, src, parser->i, src.length));
|
||||||
|
|
||||||
@ -7327,7 +7320,6 @@ STRUCT(ELFNoteHeader)
|
|||||||
};
|
};
|
||||||
static_assert(sizeof(ELFNoteHeader) == 12);
|
static_assert(sizeof(ELFNoteHeader) == 12);
|
||||||
|
|
||||||
|
|
||||||
#define elf_eh_frame_absptr 0x00
|
#define elf_eh_frame_absptr 0x00
|
||||||
#define elf_eh_frame_udata4 0x03
|
#define elf_eh_frame_udata4 0x03
|
||||||
#define elf_eh_frame_sdata4 0x0b
|
#define elf_eh_frame_sdata4 0x0b
|
||||||
@ -11883,7 +11875,6 @@ STRUCT(VirtualRegister)
|
|||||||
};
|
};
|
||||||
decl_vb(VirtualRegister);
|
decl_vb(VirtualRegister);
|
||||||
|
|
||||||
|
|
||||||
fn s32 fixed_register_mask(RegisterMask mask)
|
fn s32 fixed_register_mask(RegisterMask mask)
|
||||||
{
|
{
|
||||||
if (mask.class == REGISTER_CLASS_STACK)
|
if (mask.class == REGISTER_CLASS_STACK)
|
||||||
@ -14640,6 +14631,22 @@ fn void code_generation(Thread* restrict thread, CodegenOptions options)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
assert(os_file_descriptor_is_valid(fd));
|
assert(os_file_descriptor_is_valid(fd));
|
||||||
|
|
||||||
|
// print("u8 buffer[] = {\n");
|
||||||
|
//
|
||||||
|
// for (u64 i = 0; i < executable.length; i += 1)
|
||||||
|
// {
|
||||||
|
// auto byte = executable.pointer[i];
|
||||||
|
// if (i % 16 == 0)
|
||||||
|
// {
|
||||||
|
// print("\n ");
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// print("0x{u32:x}, ", (u32)byte);
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// print("\n};");
|
||||||
|
|
||||||
os_file_write(fd, (String) { executable.pointer, executable.length });
|
os_file_write(fd, (String) { executable.pointer, executable.length });
|
||||||
os_file_close(fd);
|
os_file_close(fd);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user