[flang-rt][AIX] Set OBJECT_MODE=any in flang-rt test (#206639)

This patch to set OBJECT_MODE=any on AIX to have tools able to handle
both different bit mode objects.

This fixes the compare_iso_fortran_env_symbols.f90 failure on AIX. The
default of llvm-nm is 32-bit but the objects in the test is 64-bit.
Setting OBJECT_MODE=any allows the tool accepts either bit modes.
This commit is contained in:
Kelvin Li authored and GitHub committed 2026-06-30 12:07:38 -04:00
1 parent d71ef546a8
commit c2ffcc0a49
1 file changed
+5
+5
View File
@@ -117,3 +117,8 @@ if config.flang_rt_experimental_offload_support == "CUDA":
if config.flang_rt_fortran_modules:
config.available_features.add("fortran-modules")
# Tools that support OBJECT_MODE default to 32-bit on AIX. Set
# OBJECT_MODE=any to handle both 32-bit and 64-bit objects.
if "system-aix" in config.available_features:
config.environment["OBJECT_MODE"] = "any"