github: waforthc fixes

This commit is contained in:
Remko Tronçon 2022-11-15 18:55:34 +01:00
parent 1cd666d026
commit 7098cc2866
3 changed files with 4 additions and 3 deletions

View file

@ -10,7 +10,7 @@ jobs:
build-waforthc:
strategy:
matrix:
os: [ubuntu-18.04]
os: [macos-latest, ubuntu-20.04]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2

View file

@ -32,7 +32,6 @@ WABT_INCLUDE_DIR = $(WABT_DIR)/include
WABT_LIB_DIR = $(WABT_DIR)/lib
WABT_DATA_DIR = $(WABT_DIR)/share/wabt
LIBS := -mmacosx-version-min=13.0
CXXFLAGS := -std=c++17
else # $(UNAME_S)
GCC_TARGET_MACHINE = $(shell gcc -dumpmachine)
WABT_INCLUDE_DIR ?= /usr/lib/include
@ -44,10 +43,11 @@ package: waforthc
$(TAR) czf waforthc-v$(VERSION)-$(PACKAGE_SUFFIX).tgz waforthc
endif # $(OS)
CPPFLAGS := -I$(WABT_INCLUDE_DIR)
CXXFLAGS := -std=c++17 $(CXXFLAGS)
LIBS := \
$(WABT_LIB_DIR)/libwabt.a \
$(LIBS)
CPPFLAGS := -I$(WABT_INCLUDE_DIR)
ifeq ($(DEBUG),1)
CXXFLAGS := $(CXXFLAGS) -g

View file

@ -9,6 +9,7 @@
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
#include <windows.h>
#else
#include <sys/wait.h>
#include <unistd.h>
#endif