Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions clang/utils/generate_unsupported_in_drivermode.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,21 +504,12 @@ def write_lit_test(test_path, test_visibility):
unsupported_pair.prefix + unsupported_pair.option_name
)

args.general_test_path = (
"../test/Driver/unsupported_in_drivermode.c"
if not args.general_test_path
else args.general_test_path
)
args.flang_test_path = (
"../test/Driver/flang/unsupported_in_flang.f90"
if not args.flang_test_path
else args.flang_test_path
)
args.flang_fc1_test_path = (
"../../flang/test/Driver/unsupported_in_flang_fc1.f90"
if not args.flang_fc1_test_path
else args.flang_fc1_test_path
)
args.general_test_path = args.general_test_path or os.path.join(
os.path.dirname(__file__), "../test/Driver/unsupported_in_drivermode.c")
args.flang_test_path = args.flang_test_path or os.path.join(
os.path.dirname(__file__), "../test/Driver/flang/unsupported_in_flang.f90")
args.flang_fc1_test_path = args.flang_fc1_test_path or os.path.join(
os.path.dirname(__file__), "../../flang/test/Driver/unsupported_in_flang_fc1.f90")

write_lit_test(
args.general_test_path,
Expand Down