Skip to content

Commit db66bae

Browse files
authored
clean up; use gcc for linux
1 parent f5b01d3 commit db66bae

File tree

1 file changed

+22
-21
lines changed

1 file changed

+22
-21
lines changed

projects/envoyproxy.io/package.yml

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,44 @@
11
distributable:
2-
url: https://github.com/envoyproxy/envoy/archive/refs/tags/v{{version}}.tar.gz
2+
url: https://github.com/envoyproxy/envoy/archive/refs/tags/{{version.tag}}.tar.gz
33
strip-components: 1
4+
45
versions:
56
github: envoyproxy/envoy
7+
68
build:
79
dependencies:
810
github.com/bazelbuild/bazelisk: '*'
911
gnu.org/automake: '*'
1012
cmake.org: '*'
1113
gnu.org/libtool: '*'
1214
ninja-build.org: '*'
13-
llvm.org: '*'
15+
linux:
16+
gnu.org/gcc: '*' # doesn't like clang; missing `version` header
1417
python.org: '*'
1518
git-scm.org: '*'
1619
script:
17-
- |
18-
# Initialize Git repo as Bazel requires git for workspace status
19-
git init
20-
git config --global user.email "[email protected]"
21-
git config --global user.name "pkgx build"
22-
git add .
23-
git commit -m "Initialize repository"
24-
25-
bazel build \
26-
--compilation_mode=opt \
27-
--curses=no \
28-
--verbose_failures \
29-
--define=wasm=disabled \
30-
//source/exe:envoy-static.stripped
20+
# Initialize Git repo as Bazel requires git for workspace status
21+
- git init
22+
- git config --global user.email "[email protected]"
23+
- git config --global user.name "pkgx build"
24+
- git add .
25+
- git commit -m "Initialize repository"
26+
27+
- bazel build $BAZEL_OPTS //source/exe:envoy-static.stripped
3128
- install -m 755 -D bazel-bin/source/exe/envoy-static.stripped {{prefix}}/bin/envoy
3229
env:
3330
linux:
34-
CC: clang
35-
CXX: clang++
3631
BAZEL_LINKOPTS: "-lm"
3732
BAZEL_LINKLIBS: "-lstdc++ -lm"
33+
BAZEL_OPTS:
34+
- --compilation_mode=opt
35+
- --curses=no
36+
- --verbose_failures
37+
- --define=wasm=disabled
38+
3839
provides:
3940
- bin/envoy
41+
4042
test:
41-
script:
42-
- envoy --version | grep {{version}}
43-
- envoy --help
43+
- envoy --version | grep {{version}}
44+
- envoy --help

0 commit comments

Comments
 (0)