Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 1d5dc2d47e556b3fbefa19b3c99865a3c3267e01
https://github.com/tianocore/edk2/commit/1d5dc2d47e556b3fbefa19b3c99865a3c3267e01
Author: Alexander Gryanko <[email protected]>
Date: 2026-01-20 (Tue, 20 Jan 2026)
Changed paths:
M BaseTools/Conf/tools_def.template
Log Message:
-----------
BaseTools: use double hyphens for CLANGPDB llvm-rc
When compiling rc files in environments where file paths begin with "/",
llvm-rc may incorrectly interpret absolute paths such as "/User/..."
as command-line options (e.g., "/U", "ser", "..."). This results in the
error "Exactly one input file must be specified". The issue was
initially observed on macOS, where user data is commonly located under
"/User" rather than "/home", but was later found to affect all platforms
where file paths start with "/". Using double hyphens ensures that all
arguments to the right are treated as positional arguments rather than
options. The use of double hyphens is supported by the LLVM command-line
argument parser and is safe in all such environments.
See: https://llvm.org/docs/CommandLine.html
Section: Specifying positional options with hyphens
Signed-off-by: Alexander Gryanko <[email protected]>
Commit: d78a2b52f3ddf7439bca063cc093d441b9e587f9
https://github.com/tianocore/edk2/commit/d78a2b52f3ddf7439bca063cc093d441b9e587f9
Author: Alexander Gryanko <[email protected]>
Date: 2026-01-20 (Tue, 20 Jan 2026)
Changed paths:
M EmulatorPkg/EmulatorPkg.dsc
Log Message:
-----------
EmulatorPkg: use double hyphens for CLANGDWARF llvm-rc
Like BaseTools, CLANGDWARF uses llvm-rc to prepare resources. In
environments where file paths begin with "/", this can cause issues,
as paths to resource files may be interpreted as command-line options
rather than positional arguments. For example, "/usr/..." can be
interpreted as "/u", "sr", "...". To prevent this behavior, an explicit
separation of options and arguments using double hyphens has been
added.
See: https://llvm.org/docs/CommandLine.html
Section: Specifying positional options with hyphens
Signed-off-by: Alexander Gryanko <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/96049a1cbcf3...d78a2b52f3dd
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits