<?xml version="1.0" ?>

<gprconfig>

  <!--  GNAT_LLVM on Vxworks7r2 for building the runtimes -->
  <compiler_description>
    <name>GNAT_LLVM_VXWORKS</name>
    <executable prefix="1">(llvm-)gnatls</executable>
    <version>
      <external>${PREFIX}gnatls -v</external>
      <grep regexp="^GNATLS.+?(\d+(\.\d+)?)" group="1"></grep>
    </version>
    <languages>Ada</languages>
    <variable name="gcc_version">
      <external>${PREFIX}gcc -v</external>
      <grep regexp="^[-\w]*gcc \S+ (\S+)" group="1"></grep>
    </variable>
    <runtimes default="default,kernel,rtp">
       <directory group="default" >\.\./lib/gnat-llvm/$TARGET/rts-kernel/adalib/</directory>
       <directory group="1" >\.\./lib/gnat-llvm/$TARGET/rts-(.*)/adalib/</directory>
    </runtimes>
    <target>
      <external>${PREFIX}gcc -dumpmachine</external>
      <grep regexp=".*-wrs-vxworks7r2"></grep>
    </target>
  </compiler_description>

  <!-- ??? This entity allows the runtime to be compiled with either
       <target>-clang or just clang. It can probably go away if and
       when the runtime compiler is changed permanently to
       <target>-clang. -->

  <compiler_description>
    <name>CLANG-C-VXWORKS-WITH-OPTIONAL-TOOL-PREFIX</name>
    <executable prefix="1">((.*-wrs-vxworks7r2-)?)clang</executable>
    <version>
      <external>$EXEC -v</external>
      <grep regexp=".*(LLVM|clang) version ([0-9.]*)" group="2"></grep>
    </version>
    <languages>C</languages>
    <target>
      <external>$EXEC -dumpmachine</external>
      <grep regexp="[^\r\n]+"></grep>
      <must_match>(^.*-wrs-vxworks7r2$)</must_match>
    </target>
  </compiler_description>

</gprconfig>
