[PATCH 4/9] [waf] Fix assembling when compiling with Clang/LLVM

Hesham Almatary Hesham.Almatary at cl.cam.ac.uk
Fri Apr 10 10:39:31 UTC 2020


Currently waf_lib only knows about nasm and gas, and automatically
sets the required flags for those. When building with Clang/LLVM
it gets confused about the assembler and fails to add the appropriate
flags.

This commit adds such needed flags to be able to handle assembling
.S files with Clang/LLVM, as expected by waf_lib asm tool.
---
 spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTCLANG.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTCLANG.yml b/spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTCLANG.yml
index f75518931b..cac645e5ee 100644
--- a/spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTCLANG.yml
+++ b/spec/build/cpukit/RTEMS-BUILD-CPUKIT-OPTCLANG.yml
@@ -12,6 +12,16 @@ actions:
 - substitute: null
 - find-program: null
 - env-assign: AR
+- set-value: clang
+- env-assign: AS
+- env-assign: ASM_NAME
+- set-value:
+  - -c
+  - -o
+- env-assign: AS_TGT_F
+- set-value:
+  - -o
+- env-assign: ASLNK_TGT_F
 - script: |
     load = "ar asm clang clang++"
     if not is_windows_host:
--
2.17.1



More information about the devel mailing list