Skip to content

Commit 48dbcfe

Browse files
committed
cleanup: Remove redundant -DSODIUM_EXPORT from definitions.
`-DSODIUM_STATIC` implies `-DSODIUM_EXPORT`.
1 parent 0cef46e commit 48dbcfe

File tree

4 files changed

+41
-64
lines changed

4 files changed

+41
-64
lines changed

.circleci/bazel-test

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
set -eux
4+
5+
git submodule update --init --recursive
6+
/src/workspace/tools/inject-repo c-toxcore
7+
cd /src/workspace && bazel test -k \
8+
--config=remote \
9+
--build_tag_filters=-haskell \
10+
--test_tag_filters=-haskell \
11+
--remote_download_minimal \
12+
-- \
13+
//c-toxcore/... \
14+
"$@"

.circleci/config.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ workflows:
55
version: 2
66
program-analysis:
77
jobs:
8-
# Dynamic analysis
8+
# Dynamic analysis in the Bazel build
9+
- bazel-asan
10+
- bazel-tsan
11+
# Dynamic analysis with CMake
912
- asan
1013
- tsan
1114
- msan
@@ -18,6 +21,28 @@ workflows:
1821
- static-analysis
1922

2023
jobs:
24+
bazel-asan:
25+
working_directory: /tmp/cirrus-ci-build
26+
docker:
27+
- image: toxchat/toktok-stack:latest-asan
28+
29+
steps:
30+
- checkout
31+
- run: .circleci/bazel-test
32+
33+
bazel-tsan:
34+
working_directory: /tmp/cirrus-ci-build
35+
docker:
36+
- image: toxchat/toktok-stack:latest-tsan
37+
38+
steps:
39+
- checkout
40+
- run: .circleci/bazel-test
41+
-//c-toxcore/auto_tests:conference_av_test
42+
-//c-toxcore/auto_tests:conference_test
43+
-//c-toxcore/auto_tests:onion_test
44+
-//c-toxcore/auto_tests:tox_many_test
45+
2146
asan:
2247
working_directory: ~/work
2348
docker:

.cirrus.yml

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -35,68 +35,6 @@ bazel-dbg_task:
3535
//c-toxcore/...
3636
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?
3737

38-
bazel-asan_task:
39-
container:
40-
image: toxchat/toktok-stack:latest-asan
41-
cpu: 2
42-
memory: 4G
43-
configure_script:
44-
- git submodule update --init --recursive
45-
- /src/workspace/tools/inject-repo c-toxcore
46-
test_all_script:
47-
- cd /src/workspace && bazel test -k
48-
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
49-
--build_tag_filters=-haskell
50-
--test_tag_filters=-haskell
51-
--remote_download_minimal
52-
--
53-
//c-toxcore/...
54-
-//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?
55-
56-
# TODO(iphydf): Enable once this works properly.
57-
#bazel-msan_task:
58-
# container:
59-
# image: toxchat/toktok-stack:latest-msan
60-
# cpu: 2
61-
# memory: 4G
62-
# configure_script:
63-
# - git submodule update --init --recursive
64-
# - /src/workspace/tools/inject-repo c-toxcore
65-
# test_all_script:
66-
# - cd /src/workspace && bazel test -k
67-
# --remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
68-
# --build_tag_filters=-haskell
69-
# --test_tag_filters=-haskell
70-
# --remote_download_minimal
71-
# --
72-
# //c-toxcore/...
73-
# -//c-toxcore/auto_tests:tcp_relay_test # TODO(robinlinden): Why does this pass locally but not in Cirrus?
74-
75-
# TODO(iphydf): Fix test timeouts.
76-
bazel-tsan_task:
77-
container:
78-
image: toxchat/toktok-stack:latest-tsan
79-
cpu: 2
80-
memory: 4G
81-
configure_script:
82-
- git submodule update --init --recursive
83-
- /src/workspace/tools/inject-repo c-toxcore
84-
test_all_script:
85-
- cd /src/workspace && bazel test -k
86-
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
87-
--build_tag_filters=-haskell
88-
--test_tag_filters=-haskell
89-
--remote_download_minimal
90-
--
91-
//c-toxcore/...
92-
-//c-toxcore/auto_tests:conference_av_test
93-
-//c-toxcore/auto_tests:conference_test
94-
-//c-toxcore/auto_tests:file_transfer_test
95-
-//c-toxcore/auto_tests:group_tcp_test
96-
-//c-toxcore/auto_tests:onion_test
97-
-//c-toxcore/auto_tests:tcp_relay_test
98-
-//c-toxcore/auto_tests:tox_many_test
99-
10038
cimple_task:
10139
container:
10240
image: toxchat/toktok-stack:latest-release

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ endif()
156156
if(MSVC)
157157
option(MSVC_STATIC_SODIUM "Whether to link libsodium statically for MSVC" OFF)
158158
if(MSVC_STATIC_SODIUM)
159-
add_definitions(-DSODIUM_STATIC=1 -DSODIUM_EXPORT)
159+
add_definitions(-DSODIUM_STATIC=1)
160160
endif()
161161
endif()
162162

0 commit comments

Comments
 (0)