Skip to content

doesn't build on macOS #1

@emberian

Description

@emberian
build flags: SHELL=/nix/store/mg966h6cir056vnva84lw86wxp1f2z2m-bash-5.2p26/bin/bash
        CC      builtin.o
^Bbuiltin.c:37:1: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma
TL_CFBV(error, "error") {
^
./tinylisp.h:1126:27: note: expanded from macro 'TL_CFBV'
#define TL_CFBV(func, nm) TL_CF_FLAGS(func, nm, TL_EF_BYVAL)
                          ^
./tinylisp.h:1097:43: note: expanded from macro 'TL_CF_FLAGS'
static tl_init_ent __attribute__((section(TL_STRINGIFY(TL_INIT_ENTS_SECTION_NAME)),aligned(8),used)) init_tl_cf_##func = {\
                                          ^
./tinylisp.h:1065:25: note: expanded from macro 'TL_STRINGIFY'
#define TL_STRINGIFY(a) TL_STRINGIFY2(a)
                        ^
./tinylisp.h:1066:26: note: expanded from macro 'TL_STRINGIFY2'
#define TL_STRINGIFY2(a) #a
                         ^
<scratch space>:409:1: note: expanded from here
"tl_init_ents"
^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions