Skip to content

Commit 1f54fea

Browse files
committed
Just use gcc since cc is not found on GitHub's MS Windows
1 parent 6e95fb8 commit 1f54fea

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

Makefile

+6-12
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Use bash syntax for all shell commands
22
export SHELL := /bin/bash
33

4-
$(info ${SHELL})
5-
$(info ${PATH})
6-
$(info $(shell which gcc))
7-
$(info $(shell which cc))
8-
94
# Where to install.
105
prefix ?= /usr/local
116

@@ -20,13 +15,6 @@ debug : CFLAGS+=-g -fsanitize=address -Wall -Wno-unused-function
2015
debug : LDLIBS+=-lasan
2116
debug : all
2217

23-
flex := flex
24-
ifeq (${OS},Windows_NT)
25-
export PATH := ${PATH}:"C:/Program Files/Git/usr/bin"
26-
$(info $(shell which cc))
27-
flex := win_flex
28-
endif
29-
3018
# Rule to automatically run flex to create .c files from .lex.
3119
.SUFFIXES: .lex
3220
.lex.c:
@@ -130,6 +118,12 @@ cfiles: $(addsuffix .c, ${targets})
130118
################################################################
131119
# Machine dependent jank
132120

121+
flex := flex
122+
ifeq (${OS},Windows_NT)
123+
flex := win_flex
124+
CC := gcc
125+
endif
126+
133127
# GNU tar lets us easily store files into a subdirectory in the archive.
134128
# Unfortunately, MacOS is recalcitrant.
135129
UNAME := $(shell uname)

0 commit comments

Comments
 (0)