Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 9bec07c

Browse files
authored
Add ASAN build
1 parent 51f34f4 commit 9bec07c

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.circleci/build-sdklt.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export SDK=$SDKLT/src
2020
# export CC=clang-3.9
2121
# export LD=lld-3.9
2222
# export ADD_CFLAGS="-g -fno-omit-frame-pointer -O0"
23+
# export ADD_LDFLAGS=""
2324

2425
cd $SDK/appl/demo
2526
make TARGET_PLATFORM=xlr_linux clean -j

.circleci/config.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,27 @@ jobs:
3939
rm linux-4.14.49-OpenNetworkLinux.tar.xz
4040
popd
4141
- checkout
42+
- run:
43+
name: Create build directory
44+
command: mkdir -p ~/build
4245
- run:
4346
name: Build SDKLT
44-
command: .circleci/build-sdklt.sh
47+
command: |
48+
export ADD_CFLAGS="-fomit-frame-pointer -O3"
49+
.circleci/build-sdklt.sh
50+
mv ~/sdklt-4.14.49.tgz ~/build/sdklt-4.14.49.tgz
51+
- run:
52+
name: Build SDKLT debug
53+
command: |
54+
export ADD_CFLAGS="-g -fno-omit-frame-pointer -O0 -fsanitize=address"
55+
export ADD_LDFLAGS="-fsanitize=address"
56+
.circleci/build-sdklt.sh
57+
mv ~/sdklt-4.14.49.tgz ~/build/sdklt-debug-4.14.49.tgz
4558
- persist_to_workspace:
46-
root: ~/
59+
root: ~/build/
4760
paths:
4861
- sdklt-4.14.49.tgz
62+
- sdklt-debug-4.14.49.tgz
4963

5064
publish-github-release:
5165
docker:

0 commit comments

Comments
 (0)