summaryrefslogtreecommitdiff
path: root/BaseTools/Conf/build_rule.template
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-15 06:17:00 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2007-10-15 06:17:00 +0000
commitc8c6d794df25bfabc28c3624bd5c442c542b6234 (patch)
treed707398ed8cf70264865a05361af4126ef30a9b0 /BaseTools/Conf/build_rule.template
parentf9168a6f8f7d420d404ebc387495b6af0ff48bb5 (diff)
downloadedk2-c8c6d794df25bfabc28c3624bd5c442c542b6234.zip
edk2-c8c6d794df25bfabc28c3624bd5c442c542b6234.tar.gz
edk2-c8c6d794df25bfabc28c3624bd5c442c542b6234.tar.bz2
Added GCC assembly code preprocessing support
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4114 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'BaseTools/Conf/build_rule.template')
-rw-r--r--BaseTools/Conf/build_rule.template4
1 files changed, 3 insertions, 1 deletions
diff --git a/BaseTools/Conf/build_rule.template b/BaseTools/Conf/build_rule.template
index 06cfb6d..19ed2a8 100644
--- a/BaseTools/Conf/build_rule.template
+++ b/BaseTools/Conf/build_rule.template
@@ -135,7 +135,9 @@
"$(ASM)" /Fo${dst} $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii
<Command.GCC>
- "$(ASM)" -o ${dst} $(ASM_FLAGS) $(INC) ${src}
+ "$(PP)" $(PP_FLAGS) $(INC) ${src} > ${d_path}(+)${s_base}.i
+ Trim --source-code -o ${d_path}(+)${s_base}.iii ${d_path}(+)${s_base}.i
+ "$(ASM)" -o ${dst} $(ASM_FLAGS) $(INC) ${d_path}(+)${s_base}.iii
[Build.Iasm-Code-File]
<InputFile>