[all-commits] [llvm/llvm-project] 625fac: [Flang] Store only options in FLANG_COMPILER_OPTIO...
Thirumalai Shaktivel via All-commits
all-commits at lists.llvm.org
Sun Jun 14 20:21:47 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 625facd4375f6bfa5de501d0559bd262062e2dc3
https://github.com/llvm/llvm-project/commit/625facd4375f6bfa5de501d0559bd262062e2dc3
Author: Thirumalai Shaktivel <74826228+Thirumalai-Shaktivel at users.noreply.github.com>
Date: 2026-06-15 (Mon, 15 Jun 2026)
Changed paths:
M flang/test/Driver/compiler-options.f90
M flang/tools/flang-driver/driver.cpp
Log Message:
-----------
[Flang] Store only options in FLANG_COMPILER_OPTIONS_STRING (#201278)
Previously, FLANG_COMPILER_OPTIONS_STRING stored every argument passed
to the flang driver, including input file names. The GNU extension
compiler_options() is documented to return only the options, not the
input files. Including the input files also caused the string to exceed
ARG_MAX on large builds, producing:
posix_spawn failed: Argument list too long
Use the driver's parsed InputArgList to filter out OPT_INPUT arguments,
preserving all options and their values (e.g. `-I /path`, `-o file`).
Fixes: https://github.com/llvm/llvm-project/issues/170651
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list