#!/usr/bin/env python3
"""Use PCFC11's supported native-test profile instead of GCC-only helper flags."""
import os,sys
compiler='/workspace/scratch/630c3cb01bee/review/work/PCFC11-0.2.27/pcfc11'
args=[arg for arg in sys.argv[1:] if arg!='-O2' and not arg.startswith('-W')]
assert any(arg in ('-O0','-O1') for arg in args)
os.execv(compiler,[compiler,*args])
