
Allow opting out from preprocessing with a command line argument. Update tests to pass -no-preprocess to make it not try to use clang (which isn't a build level dependency of llvm-rc), but add a test that does preprocessing under clang/test/Preprocessor. Update a few options to allow them both joined (as -DFOO) and separate (-D BR), as rc.exe allows both forms of them. With the verbose flag set, this prints the preprocessing command used (which differs from what rc.exe does). Tests under llvm/test/tools/llvm-rc only test constructing the preprocessor commands, while tests under clang/test/Preprocessor test actually running the preprocessor. Differential Revision: https://reviews.llvm.org/D100755
20 lines
607 B
Plaintext
20 lines
607 B
Plaintext
; RUN: llvm-rc -no-preprocess /l 40A /FO %t.res -- %p/Inputs/language.rc
|
|
; RUN: llvm-readobj %t.res | FileCheck %s
|
|
; RUN: llvm-rc -no-preprocess /l40A /FO %t.res -- %p/Inputs/language.rc
|
|
; RUN: llvm-readobj %t.res | FileCheck %s
|
|
|
|
; CHECK: Resource name (int): 1
|
|
; CHECK-NEXT: Data version:
|
|
; CHECK-NEXT: Memory flags:
|
|
; CHECK-NEXT: Language ID: 2049
|
|
|
|
; CHECK: Resource name (int): 2
|
|
; CHECK-NEXT: Data version:
|
|
; CHECK-NEXT: Memory flags:
|
|
; CHECK-NEXT: Language ID: 1034
|
|
|
|
; CHECK: Resource name (int): 3
|
|
; CHECK-NEXT: Data version:
|
|
; CHECK-NEXT: Memory flags:
|
|
; CHECK-NEXT: Language ID: 4099
|