Skip to content

Commit

Permalink
Rearrange things to try and diagnose the Windows build issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Nov 3, 2024
1 parent fca75c1 commit b08b4e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,9 @@ CFLAGS ?= -g \
-Werror=strict-prototypes \
-fsanitize=unreachable

MANDATORYCFLAGS = \
-DUNREACHABLE_CODE='__builtin_unreachable()' \
-DNORETURN=_Noreturn

LDFLAGS ?= -g \
-fsanitize=unreachable

MANDATORYLDFLAGS =

# Various commands.

AR ?= ar
Expand Down Expand Up @@ -82,6 +76,12 @@ INSDIR = $(abspath $(BUILDDIR)/staging)
PLATIND = $(INSDIR)/share/ack
PLATDEP = $(INSDIR)/lib/ack

MANDATORYCFLAGS = \
-DUNREACHABLE_CODE='__builtin_unreachable()' \
-DNORETURN=_Noreturn

MANDATORYLDFLAGS =

.NOTPARALLEL:

ifeq ($(BUILDSYSTEM),)
Expand Down
2 changes: 1 addition & 1 deletion lang/pc/comp/node.xh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ struct node {
#define nd_next nd_left
struct node *nd_right;
int nd_class; /* kind of node */
#define Value 0 /* constant */
#define Name 1 /* an identifier */
#define Uoper 2 /* unary operator */
#define Boper 3 /* binary operator */
Expand All @@ -24,6 +23,7 @@ struct node {
#define Cast 13 /* convert integer to real */
#define IntCoerc 14 /* coercion of integers to longs */
#define IntReduc 15 /* reduction of longs to integers */
#define Value 0 /* constant */
/* do NOT change the order or the numbers!!! */
struct type *nd_type; /* type of this node */
struct token nd_token;
Expand Down

0 comments on commit b08b4e5

Please sign in to comment.