Skip to content

Commit

Permalink
BaseTools/Conf: Use empty C file in VS20xx HOST_APPLICATION builds
Browse files Browse the repository at this point in the history
Signed-off-by: Michael D Kinney <[email protected]>
  • Loading branch information
mdkinney committed Dec 27, 2024
1 parent 22dcafa commit f69d5b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions BaseTools/Conf/Empty_C_File_Host_Application_Build.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @file
This is an empty C source file used in VS20xx HOST_APPLICATION
builds.
Copyright (c) 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
3 changes: 2 additions & 1 deletion BaseTools/Conf/build_rule.template
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,8 @@
$(DEBUG_DIR)(+)$(MODULE_NAME)

<Command.MSFT, Command.INTEL, Command.CLANGPDB>
"$(DLINK)" $(DLINK_FLAGS) $(DLINK_SPATH) @$(STATIC_LIBRARY_FILES_LIST)
"$(CC)" /Fo$$(OUTPUT_DIR)/Empty_C_File_Host_Application_Build.obj $(CC_FLAGS) $(INC) $(EDK_TOOLS_PATH)/Conf/Empty_C_File_Host_Application_Build.c
"$(DLINK)" $(DLINK_FLAGS) $(DLINK_SPATH) $(OUTPUT_DIR)/Empty_C_File_Host_Application_Build.obj @$(STATIC_LIBRARY_FILES_LIST)

<Command.GCC>
"$(DLINK)" $(DLINK_FLAGS) -Wl,--start-group,@$(STATIC_LIBRARY_FILES_LIST),--end-group $(DLINK2_FLAGS)
Expand Down

0 comments on commit f69d5b0

Please sign in to comment.