Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions db/cross.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<target name="^e500v2-gnu-linux" />
<target name="^.*-netbsd.*$" />
<target name="^.*-dragonfly.*$" />
<target name="^loongarch(32|64)(-none|-unknown)?-elf$" />
</targets>
<config>
package Builder is
Expand Down
17 changes: 17 additions & 0 deletions db/linker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,18 @@
</config>
</configuration>

<configuration>
<targets>
<target name="^loongarch64-.*linux-gnu$" />
</targets>
<config>
for Archive_Builder use ("loongarch64-linux-gnu-ar", "cr");
for Archive_Builder_Append_Option use ("q");
for Archive_Indexer use ("loongarch64-linux-gnu-ranlib");
for Archive_Suffix use ".a";
</config>
</configuration>

<!-- Do not run ranlib on AIX -->
<configuration>
<targets>
Expand Down Expand Up @@ -1013,6 +1025,7 @@
<target name="^.*-qnx[0-9]*$"/>
<target name="^.*-rtems.*$"/>
<target name="^cuda$" />
<target name="^loongarch(32|64)(-none|-unknown)?-elf$" />
</targets>
<config>
for Archive_Builder use ("ar", "cr");
Expand Down Expand Up @@ -1108,6 +1121,7 @@
<target name="^c$" />
<target name="^llvm$" />
<target name="^.*-rtems.*$"/>
<target name="^loongarch(32|64)(-none|-unknown)?-elf$" />
</targets>
<config>
for Library_Support use "static_only";
Expand Down Expand Up @@ -1908,6 +1922,7 @@
<target name="^.*netbsd.*$" />
<target name="^.*dragonfly.*$" />
<target name="^.*-qnx[0-9]*"/>
<target name="^loongarch(32|64)(-none|-unknown)?-elf$" />
</targets>
<config>
package Linker is
Expand Down Expand Up @@ -1960,6 +1975,7 @@
<target name="^.*openbsd.*$" />
<target name="^.*netbsd.*$" />
<target name="^.*dragonfly.*$" />
<target name="^loongarch(32|64)(-none|-unknown)?-elf$" />
</targets>
<config>
package Linker is
Expand Down Expand Up @@ -2001,6 +2017,7 @@
<target name="^.*openbsd.*$" />
<target name="^.*netbsd.*$" />
<target name="^.*dragonfly.*$" />
<target name="^loongarch(32|64)(-none|-unknown)?-elf$" />
</targets>
<config>
package Linker is
Expand Down
14 changes: 14 additions & 0 deletions db/targetset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,20 @@
<target>i.86-.*-pikeos</target>
</targetset>

<!-- loongarch32-elf-.* -->
<targetset canonical="loongarch32-elf">
<target>loongarch32-elf</target>
<target>loongarch32-none-elf</target>
<target>loongarch32-unknown-elf</target>
</targetset>

<!-- loongarch64-elf-.* -->
<targetset canonical="loongarch64-elf">
<target>loongarch64-elf</target>
<target>loongarch64-none-elf</target>
<target>loongarch64-unknown-elf</target>
</targetset>

<!-- C -->
<targetset canonical="c">
<target>c</target>
Expand Down