Skip to content

Commit

Permalink
BaseTools: Update build_rule to skip CLANG resource section generation
Browse files Browse the repository at this point in the history
LLVM/CLANG doesn't support resource section generation when ELF image generated.

Signed-off-by: Liming Gao <[email protected]>
Reviewed-by: Feng Bob C <[email protected]>
  • Loading branch information
lgao4 authored and mergify[bot] committed Jun 4, 2021
1 parent c6b872c commit cf9959a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions BaseTools/Conf/build_rule.template
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,5 @@
<Command.GCC>
"$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)
"$(RC)" $(RC_FLAGS) $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc ${dst}

<Command.XCODE, Command.RVCT>
GenFw -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES)
<Command.XCODE, Command.RVCT, Command.CLANGGCC>
"$(GENFW)" -o $(OUTPUT_DIR)(+)$(MODULE_NAME)hii.rc -g $(MODULE_GUID) --hiibinpackage $(HII_BINARY_PACKAGES) $(GENFW_FLAGS)

0 comments on commit cf9959a

Please sign in to comment.