cann't hardcode the TARGET value like this because it wont work on other archs.   To test the -O3 -w -i8 flags,  you need to add them to extra flags. I know this looks weird with FORTRAN but this is just how the test harnesss is working
@@ -5,7 +5,8 @@ TESTSRC_MAIN = decl_targ.f95
TESTSRC_AUX =
TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX)
-TARGET = -fopenmp -O3 -w -i8 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=$(AOMP_GPU)
+CFLAGS = -O3
+EXTRA_CFLAGS = -w -i8
FLANG = flang
OMP_BIN = $(AOMP)/bin/$(FLANG)
CC = $(OMP_BIN) $(VERBOSE)
