diff options
| author | Alexander Gryanko <xpahos@gmail.com> | 2025-10-07 01:55:16 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-01-20 17:48:25 +0300 |
| commit | 1d5dc2d47e556b3fbefa19b3c99865a3c3267e01 (patch) | |
| tree | df147aff7394fe5a520c215cf456bbcdf4d4609a /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h | |
| parent | 96049a1cbcf39dc4a02e60aecb8c25e0f45b8ad8 (diff) | |
| download | edk2-1d5dc2d47e556b3fbefa19b3c99865a3c3267e01.tar.xz | |
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 <xpahos@gmail.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptInternalFormat.h')
0 files changed, 0 insertions, 0 deletions
