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:
|
build-waforthc:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-18.04]
|
os: [macos-latest, ubuntu-20.04]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
@ -32,7 +32,6 @@ WABT_INCLUDE_DIR = $(WABT_DIR)/include
|
||||||
WABT_LIB_DIR = $(WABT_DIR)/lib
|
WABT_LIB_DIR = $(WABT_DIR)/lib
|
||||||
WABT_DATA_DIR = $(WABT_DIR)/share/wabt
|
WABT_DATA_DIR = $(WABT_DIR)/share/wabt
|
||||||
LIBS := -mmacosx-version-min=13.0
|
LIBS := -mmacosx-version-min=13.0
|
||||||
CXXFLAGS := -std=c++17
|
|
||||||
else # $(UNAME_S)
|
else # $(UNAME_S)
|
||||||
GCC_TARGET_MACHINE = $(shell gcc -dumpmachine)
|
GCC_TARGET_MACHINE = $(shell gcc -dumpmachine)
|
||||||
WABT_INCLUDE_DIR ?= /usr/lib/include
|
WABT_INCLUDE_DIR ?= /usr/lib/include
|
||||||
|
@ -44,10 +43,11 @@ package: waforthc
|
||||||
$(TAR) czf waforthc-v$(VERSION)-$(PACKAGE_SUFFIX).tgz waforthc
|
$(TAR) czf waforthc-v$(VERSION)-$(PACKAGE_SUFFIX).tgz waforthc
|
||||||
endif # $(OS)
|
endif # $(OS)
|
||||||
|
|
||||||
|
CPPFLAGS := -I$(WABT_INCLUDE_DIR)
|
||||||
|
CXXFLAGS := -std=c++17 $(CXXFLAGS)
|
||||||
LIBS := \
|
LIBS := \
|
||||||
$(WABT_LIB_DIR)/libwabt.a \
|
$(WABT_LIB_DIR)/libwabt.a \
|
||||||
$(LIBS)
|
$(LIBS)
|
||||||
CPPFLAGS := -I$(WABT_INCLUDE_DIR)
|
|
||||||
|
|
||||||
ifeq ($(DEBUG),1)
|
ifeq ($(DEBUG),1)
|
||||||
CXXFLAGS := $(CXXFLAGS) -g
|
CXXFLAGS := $(CXXFLAGS) -g
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
|
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#else
|
#else
|
||||||
|
#include <sys/wait.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue