[PATCH] rld-cc: Add -target to recognised cflags
Hesham Almatary
hesham.almatary at cl.cam.ac.uk
Wed Mar 24 09:57:19 UTC 2021
-target *-*-* flag is necessary for LLVM/Clang while cross-compiling
---
rtemstoolkit/rld-cc.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/rtemstoolkit/rld-cc.cpp b/rtemstoolkit/rld-cc.cpp
index bb03ff6..b424214 100644
--- a/rtemstoolkit/rld-cc.cpp
+++ b/rtemstoolkit/rld-cc.cpp
@@ -110,6 +110,7 @@ namespace rld
{ fg_include, "-I", 2, true, 0 },
{ fg_include, "-isystem", 2, true, 0 },
{ fg_include, "-sysroot", 2, true, 0 },
+ { fg_machine, "-target" , 2, false, 0 },
{ fg_machine, "-O", 1, false, 0 },
{ fg_machine, "-m", 1, false, 0 },
{ fg_machine, "-f", 1, false, 0 },
--
2.25.1
More information about the devel
mailing list