1#!/bin/bash
2# SPDX-License-Identifier: BSD-3-Clause
3# Copyright(c) 2020 Intel Corporation. All rights reserved.
4# Author: Janusz Jankowski <janusz.jankowski@linux.intel.com>
5
6# Utility for filtering flags passed to the compiler.
7
8set -e
9
10out_args=()
11
12for arg in "$@"; do
13	for target in $PROXY_REMOVE_FLAGS; do
14		if [[ $arg = $target ]]; then
15			continue 2
16		fi
17	done
18	out_args+=("$arg")
19done
20
21
22$PROXY_CC "${out_args[@]}"
23