mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 20:02:22 -07:00
update essence API header
This commit is contained in:
@@ -50,3 +50,6 @@ write :: proc(fd: Handle, data: []u8) -> (int, Errno) {
|
||||
return (int) (0), (Errno) (1);
|
||||
}
|
||||
|
||||
seek :: proc(fd: Handle, offset: i64, whence: int) -> (i64, Errno) {
|
||||
return (i64) (0), (Errno) (1);
|
||||
}
|
||||
|
||||
+649
-521
File diff suppressed because it is too large
Load Diff
@@ -1,2 +1,18 @@
|
||||
package time
|
||||
IS_SUPPORTED :: false;
|
||||
|
||||
import "core:sys/es"
|
||||
|
||||
IS_SUPPORTED :: true;
|
||||
|
||||
now :: proc() -> Time {
|
||||
// TODO Replace once there's a proper time API.
|
||||
return Time{_nsec = i64(es.TimeStampMs() * 1e6)};
|
||||
}
|
||||
|
||||
sleep :: proc(d: Duration) {
|
||||
es.Sleep(u64(d/Millisecond));
|
||||
}
|
||||
|
||||
_tick_now :: proc() -> Tick {
|
||||
return Tick{_nsec = i64(es.TimeStampMs() * 1e6)};
|
||||
}
|
||||
|
||||
+1
-1
@@ -2216,7 +2216,7 @@ int main(int arg_count, char const **arg_ptr) {
|
||||
|
||||
if (build_context.cross_compiling && selected_target_metrics->metrics == &target_essence_amd64) {
|
||||
#ifdef GB_SYSTEM_UNIX
|
||||
system_exec_command_line_app("linker", "x86_64-essence-gcc \"%.*s.o\" -o \"%.*s\" %.*s %.*s", // -ffreestanding -nostdlib
|
||||
system_exec_command_line_app("linker", "x86_64-essence-gcc -ffreestanding -nostdlib \"%.*s.o\" -o \"%.*s\" %.*s %.*s",
|
||||
LIT(output_base), LIT(output_base), LIT(build_context.link_flags), LIT(build_context.extra_linker_flags));
|
||||
#else
|
||||
gb_printf_err("Linking for cross compilation for this platform is not yet supported (%.*s %.*s)\n",
|
||||
|
||||
Reference in New Issue
Block a user