#!/bin/bash # GCC wrapper that filters out Intel compiler flags args=() for arg in "$@"; do case "$arg" in -xCORE-AVX2|--xCORE-AVX2|-xHost|--xHost) # Skip Intel-specific flags ;; *) args+=("$arg") ;; esac done exec /usr/bin/gcc "${args[@]}"