mirror of
https://github.com/remko/waforth
synced 2025-01-14 08:01:34 +01:00
github: waforthc fixes
This commit is contained in:
parent
1cd666d026
commit
7098cc2866
3 changed files with 4 additions and 3 deletions
2
.github/workflows/build-waforthc.yml
vendored
2
.github/workflows/build-waforthc.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue