Skip to content

Commit 72c3cb1

Browse files
committed
CI: exclude documentation updates, pass LDFLAGS to linker in standalone compilation
1 parent 68c253d commit 72c3cb1

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
trigger:
2-
- master
3-
- 1.* # version branches
4-
pr:
5-
- master
6-
- 1.*
2+
branches: {include: ['master', '1.*'] }
3+
paths:
4+
include: ['*']
5+
exclude:
6+
- 'docs/*'
77

88
variables:
99
cmakeargs: '-DCMAKE_BUILD_TYPE=Release'
@@ -36,6 +36,7 @@ stages:
3636
container: quay.io/pypa/manylinux2010_x86_64:latest
3737
steps:
3838
- bash: CFLAGS="-flto -static-libstdc++ -std=c++14" ./standalone_compilation_linux.sh
39+
- bash: strip --strip-unneeded liblsl.so
3940
- publish: liblsl.so
4041
artifact: manylinux2010
4142
- stage: Upload

standalone_compilation_linux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ${CXX:-g++} -fPIC -fvisibility=hidden -O2 ${CFLAGS} -Ilslboost \
1717
lslboost/libs/serialization/src/*.cpp \
1818
lslboost/libs/thread/src/pthread/once.cpp \
1919
lslboost/libs/thread/src/pthread/thread.cpp \
20+
${LDFLAGS} \
2021
-shared -o liblsl.so -lpthread -lrt
21-
${CC:-gcc} -O2 ${FLAGS} -Iinclude testing/lslver.c -o lslver -L. -llsl
22+
${CC:-gcc} -O2 ${CFLAGS} -Iinclude testing/lslver.c -o lslver -L. -llsl
2223
LD_LIBRARY_PATH=. ./lslver

0 commit comments

Comments
 (0)