Skip to content

Commit

Permalink
Use llvm-<arch>-gcc for assembly
Browse files Browse the repository at this point in the history
Closes #2.
  • Loading branch information
sebastianpoeplau committed Dec 13, 2022
1 parent 78244c7 commit 60df27f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/asm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<compilers>
<compiler name="^GCC-ASM$" language="Asm_Cpp" />
<compiler name="^LLVM$" language="Asm_Cpp" />
<compiler name="^GNAT_LLVM_ASM$" language="Asm_Cpp" />
</compilers>
<config>
package Compiler is
Expand All @@ -26,6 +27,7 @@
<compilers>
<compiler name="^GCC-ASM$" language="Asm" />
<compiler name="^LLVM$" language="Asm" />
<compiler name="^GNAT_LLVM_ASM$" language="Asm" />
</compilers>
<config>
package Compiler is
Expand All @@ -44,6 +46,7 @@
<compilers>
<compiler name="^GCC-ASM$" language="Asm2" />
<compiler name="^LLVM$" language="Asm2" />
<compiler name="^GNAT_LLVM_ASM$" language="Asm2" />
</compilers>
<config>
package Compiler is
Expand Down
16 changes: 16 additions & 0 deletions db/compilers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,22 @@
</target>
</compiler_description>

<!-- Architecture-specific GNAT-LLVM assembler -->

<compiler_description>
<name>GNAT_LLVM_ASM</name>
<executable prefix="1">(llvm-(aarch64-elf-)?)gcc</executable>
<version>
<external>$EXEC -v</external>
<grep regexp="^llvm-.*gcc.+GNAT Pro (\S+)" group="1"></grep>
</version>
<languages>Asm,Asm_Cpp,Asm2</languages>
<target>
<external>$EXEC -dumpmachine</external>
<grep regexp="[^\r\n]+"></grep>
</target>
</compiler_description>

<!-- Generic C compiler for LLVM -->
<compiler_description>
<name>C_LLVM</name>
Expand Down

0 comments on commit 60df27f

Please sign in to comment.