diff --git a/projects/suricata/Dockerfile b/projects/suricata/Dockerfile index 4f045db19289..257e7fb04919 100644 --- a/projects/suricata/Dockerfile +++ b/projects/suricata/Dockerfile @@ -33,4 +33,3 @@ RUN git clone --depth 1 https://github.com/OISF/libhtp.git libhtp RUN git clone --depth 1 https://github.com/OISF/suricata-verify suricata-verify WORKDIR $SRC COPY build.sh $SRC/ -COPY rustc.py $SRC/ diff --git a/projects/suricata/build.sh b/projects/suricata/build.sh index 40142426b5e2..7a86ed9dfa38 100755 --- a/projects/suricata/build.sh +++ b/projects/suricata/build.sh @@ -62,8 +62,6 @@ sh autogen.sh if [ "$SANITIZER" = "coverage" ] then export RUSTFLAGS="$RUSTFLAGS -C debug-assertions=no" - chmod +x $SRC/rustc.py - export RUSTC="$SRC/rustc.py" ./configure --disable-shared --enable-fuzztargets --enable-debug else if [ "$SANITIZER" = "address" ] diff --git a/projects/suricata/rustc.py b/projects/suricata/rustc.py deleted file mode 100644 index 00f26df637ae..000000000000 --- a/projects/suricata/rustc.py +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env python - -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import sys -import subprocess - -#disable coverage for crate brotli_decompressor -sys.argv[0] = "rustc" -if "brotli_decompressor" in sys.argv: - try: - sys.argv.remove("-Zinstrument-coverage") - except: - pass - print(sys.argv) -subprocess.call(sys.argv)