Merge "build: soong: windres: use clang to preprocess"

This commit is contained in:
Treehugger Robot
2020-01-30 02:21:02 +00:00
committed by Gerrit Code Review

View File

@@ -178,7 +178,7 @@ var (
windres = pctx.AndroidStaticRule("windres",
blueprint.RuleParams{
Command: "$windresCmd $flags -I$$(dirname $in) -i $in -o $out",
Command: "$windresCmd $flags -I$$(dirname $in) -i $in -o $out --preprocessor \"${config.ClangBin}/clang -E -xc-header -DRC_INVOKED\"",
CommandDeps: []string{"$windresCmd"},
},
"windresCmd", "flags")