From 903164568cafc77f45bb0c8c7341a400f7021812 Mon Sep 17 00:00:00 2001 From: danyaberezun Date: Wed, 7 Feb 2024 12:12:46 +0100 Subject: [PATCH] mac: last attempt --- .github/workflows/blank.yml | 2 +- runtime/printf.s | 22 ++++++++++++---------- runtime/runtime.c | 1 + 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index abad2b3cc..182eeac7e 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -12,7 +12,7 @@ jobs: fail-fast: false matrix: os: - - ubuntu-latest + # - ubuntu-latest - macos-latest ocaml-compiler: - 4.13.1 diff --git a/runtime/printf.s b/runtime/printf.s index f40f3854e..9da3f9d44 100644 --- a/runtime/printf.s +++ b/runtime/printf.s @@ -1,18 +1,20 @@ -.section .text + .data -.global Lprintf -.extern Bprintf + .global Lprintf + .extern Bprintf -.global Lfprintf -.extern Bfprintf + .global Lfprintf + .extern Bfprintf -.global Lsprintf -.extern Bsprintf + .global Lsprintf + .extern Bsprintf -.global Lfailure -.extern failure + .global Lfailure + .extern failure -.extern cnt_percentage_sign + .extern cnt_percentage_sign + + .text Lprintf: # save return address diff --git a/runtime/runtime.c b/runtime/runtime.c index 73bd9f47a..996f3e880 100644 --- a/runtime/runtime.c +++ b/runtime/runtime.c @@ -3,6 +3,7 @@ #define _GNU_SOURCE 1 #include "runtime.h" +#include #include "gc.h" #include "runtime_common.h"