[all-commits] [llvm/llvm-project] 10b78c: [llvm-windres] Pass user preprocessor arguments be...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Fri Dec 15 10:15:21 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10b78cc8cea65e7e77d227af4027963f39402724
      https://github.com/llvm/llvm-project/commit/10b78cc8cea65e7e77d227af4027963f39402724
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-12-15 (Fri, 15 Dec 2023)

  Changed paths:
    M llvm/test/tools/llvm-rc/preproc.test
    M llvm/test/tools/llvm-rc/windres-preproc.test
    M llvm/tools/llvm-rc/llvm-rc.cpp

  Log Message:
  -----------
  [llvm-windres] Pass user preprocessor arguments before the input filename (#75389)

If passing the windres option --preprocessor, the default arguments "-E
-xc -DRC_INVOKED" aren't passed. If these are passed explicitly by the
user via --preprocessor-arg instead, we need to make sure that "-xc" is
passed before the input filename, as this compiler/preprocessor option
only has an effect on input files that follow it.

This fixes one of the issues with llvm-windres observed in
https://github.com/msys2/MINGW-packages/pull/19157.




More information about the All-commits mailing list