From 7098cc2866267267ec6d67ff1c603b4ae6c63818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Tue, 15 Nov 2022 18:55:34 +0100 Subject: [PATCH] github: waforthc fixes --- .github/workflows/build-waforthc.yml | 2 +- src/waforthc/Makefile | 4 ++-- src/waforthc/waforthc.cpp | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-waforthc.yml b/.github/workflows/build-waforthc.yml index fde889c..1063ab4 100644 --- a/.github/workflows/build-waforthc.yml +++ b/.github/workflows/build-waforthc.yml @@ -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 diff --git a/src/waforthc/Makefile b/src/waforthc/Makefile index 2e4e817..cafb01c 100644 --- a/src/waforthc/Makefile +++ b/src/waforthc/Makefile @@ -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 diff --git a/src/waforthc/waforthc.cpp b/src/waforthc/waforthc.cpp index 959ff51..3e90cd5 100644 --- a/src/waforthc/waforthc.cpp +++ b/src/waforthc/waforthc.cpp @@ -9,6 +9,7 @@ #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) #include #else +#include #include #endif