Skip to content

Commit

Permalink
Suricata rust clang16 (#10019)
Browse files Browse the repository at this point in the history
  • Loading branch information
catenacyber authored Apr 4, 2023
1 parent 31ed0c8 commit bf6ebb8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/suricata/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ RUN git clone --depth=1 https://github.com/catenacyber/fuzzpcap

ADD https://rules.emergingthreats.net/open/suricata/emerging.rules.zip emerging.rules.zip

# until clang 16 is used for C cf https://github.com/rust-lang/rust/issues/107149#issuecomment-1492637779
RUN rustup install nightly-2023-03-24
RUN rustup component add rust-src --toolchain nightly-2023-03-24-x86_64-unknown-linux-gnu
RUN cargo install --force cbindgen

RUN git clone --depth 1 https://github.com/OISF/suricata.git suricata
Expand Down
3 changes: 3 additions & 0 deletions projects/suricata/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#
################################################################################

# until clang 16 is used for C cf https://github.com/rust-lang/rust/issues/107149#issuecomment-1492637779
rustup default nightly-2023-03-24

# build dependencies statically
if [ "$SANITIZER" = "memory" ]
then
Expand Down

0 comments on commit bf6ebb8

Please sign in to comment.