File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 63
63
- name : Install ccache, ninja (Linux)
64
64
run : sudo apt install ccache ninja-build
65
65
if : matrix.os == 'ubuntu-latest'
66
+ - name : Print version info
67
+ run : ./version.py dump
66
68
- name : Build
67
69
run : NINJA_FLAGS=-v make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON
68
70
shell : bash
@@ -111,6 +113,8 @@ jobs:
111
113
with :
112
114
fetch-depth : 0
113
115
- run : git submodule update --init --depth 32 --jobs 3
116
+ - name : Print version info
117
+ run : python3 ./version.py dump
114
118
- name : Build
115
119
shell : msys2 {0}
116
120
run : |
@@ -165,6 +169,8 @@ jobs:
165
169
type=ref,event=pr
166
170
type=sha
167
171
172
+ - name : Print version info
173
+ run : ./version.py dump
168
174
- name : Run docker_build script
169
175
run : ./docker_build.sh
170
176
- name : Upload artifacts
Original file line number Diff line number Diff line change 3
3
4
4
ROOT_DIR =${CURDIR}
5
5
LLVM_PROJ_DIR? =$(ROOT_DIR ) /src/llvm-project
6
+ VERSION_SCRIPT =python3 ./version.py
6
7
7
8
# Windows needs munging
8
9
ifeq ($(OS ) ,Windows_NT)
@@ -43,8 +44,8 @@ override LLVM_CMAKE_FLAGS += -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
43
44
endif
44
45
45
46
# Only the major version is needed for Clang, see https://reviews.llvm.org/D125860.
46
- CLANG_VERSION =$(shell $(BASH ) ./version.py llvm-major --llvm-dir=$(LLVM_PROJ_DIR ) )
47
- VERSION: =$(shell $(BASH ) ./version.py )
47
+ CLANG_VERSION =$(shell $(VERSION_SCRIPT ) llvm-major --llvm-dir=$(LLVM_PROJ_DIR ) )
48
+ VERSION: =$(shell $(VERSION_SCRIPT ) )
48
49
DEBUG_PREFIX_MAP=-fdebug-prefix-map=$(ROOT_DIR) =wasisdk://v$(VERSION )
49
50
50
51
default : build
@@ -241,7 +242,7 @@ build/config.BUILT:
241
242
touch build/config.BUILT
242
243
243
244
build/version.BUILT :
244
- ./version.py dump > $(BUILD_PREFIX ) /VERSION
245
+ $( VERSION_SCRIPT ) dump > $(BUILD_PREFIX ) /VERSION
245
246
touch build/version.BUILT
246
247
247
248
build : build/llvm.BUILT build/wasi-libc.BUILT build/compiler-rt.BUILT build/libcxx.BUILT build/config.BUILT build/version.BUILT
You can’t perform that action at this time.
0 commit comments