|
| 1 | +#!/bin/sh |
| 2 | +# Copyright 2017 The Rust Project Developers. See the COPYRIGHT |
| 3 | +# file at the top-level directory of this distribution and at |
| 4 | +# http://rust-lang.org/COPYRIGHT. |
| 5 | +# |
| 6 | +# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or |
| 7 | +# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license |
| 8 | +# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your |
| 9 | +# option. This file may not be copied, modified, or distributed |
| 10 | +# except according to those terms. |
| 11 | + |
| 12 | +case $1 in |
| 13 | +--version) echo 4.0.1;; |
| 14 | +--prefix) echo $SCRATCH/haiku-cross/sysroot/boot/system;; |
| 15 | +--bindir) echo $SCRATCH/haiku-cross/sysroot/boot/system/bin;; |
| 16 | +--includedir) echo $SCRATCH/haiku-cross/sysroot/boot/system/develop/headers;; |
| 17 | +--libdir) echo $SCRATCH/haiku-/cross/sysroot/boot/system/develop/lib;; |
| 18 | +--cmakedir) echo $SCRATCH/haiku-/cross/sysroot/boot/system/develop/lib/cmake/llvm;; |
| 19 | +--cppflags) echo -I$SCRATCH/haiku-/cross/sysroot/boot/system/develop/headers \ |
| 20 | + -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS;; |
| 21 | +--cflags) echo -I$SCRATCH/haiku-cross/sysroot/boot/system/develop/headers \ |
| 22 | + -fPIC -Wall -W -Wno-unused-parameter -Wwrite-strings \ |
| 23 | + -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-comment \ |
| 24 | + -Werror=date-time -ffunction-sections -fdata-sections -O3 -DNDEBUG \ |
| 25 | + -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS;; |
| 26 | +--cxxflags) echo -I/$SCRATCH/haiku-cross/sysroot/boot/system/develop/headers \ |
| 27 | + -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter \ |
| 28 | + -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic \ |
| 29 | + -Wno-long-long -Wno-maybe-uninitialized -Wdelete-non-virtual-dtor \ |
| 30 | + -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections \ |
| 31 | + -fdata-sections -O3 -DNDEBUG -fno-exceptions \ |
| 32 | + -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS;; |
| 33 | +--ldflags) echo -L$SCRATCH/haiku-cross/sysroot/boot/system/develop/lib ;; |
| 34 | +--system-libs) echo ;; |
| 35 | +--libs) echo -lLLVM-4.0;; |
| 36 | +--libfiles) echo $SCRATCH/haiku-cross/sysroot/boot/system/develop/lib/libLLVM-4.0.so;; |
| 37 | +--components) echo aarch64 aarch64asmparser aarch64asmprinter aarch64codegen \ |
| 38 | + aarch64desc aarch64disassembler aarch64info aarch64utils all \ |
| 39 | + all-targets amdgpu amdgpuasmparser amdgpuasmprinter amdgpucodegen \ |
| 40 | + amdgpudesc amdgpudisassembler amdgpuinfo amdgpuutils analysis arm \ |
| 41 | + armasmparser armasmprinter armcodegen armdesc armdisassembler \ |
| 42 | + arminfo asmparser asmprinter bitreader bitwriter bpf bpfasmprinter \ |
| 43 | + bpfcodegen bpfdesc bpfdisassembler bpfinfo codegen core coroutines \ |
| 44 | + coverage debuginfocodeview debuginfodwarf debuginfomsf debuginfopdb \ |
| 45 | + demangle engine executionengine globalisel hexagon hexagonasmparser \ |
| 46 | + hexagoncodegen hexagondesc hexagondisassembler hexagoninfo \ |
| 47 | + instcombine instrumentation interpreter ipo irreader lanai \ |
| 48 | + lanaiasmparser lanaicodegen lanaidesc lanaidisassembler lanaiinfo \ |
| 49 | + lanaiinstprinter libdriver lineeditor linker lto mc mcdisassembler \ |
| 50 | + mcjit mcparser mips mipsasmparser mipsasmprinter mipscodegen \ |
| 51 | + mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmprinter \ |
| 52 | + msp430codegen msp430desc msp430info native nativecodegen nvptx \ |
| 53 | + nvptxasmprinter nvptxcodegen nvptxdesc nvptxinfo objcarcopts object \ |
| 54 | + objectyaml option orcjit passes powerpc powerpcasmparser \ |
| 55 | + powerpcasmprinter powerpccodegen powerpcdesc powerpcdisassembler \ |
| 56 | + powerpcinfo profiledata riscv riscvcodegen riscvdesc riscvinfo \ |
| 57 | + runtimedyld scalaropts selectiondag sparc sparcasmparser \ |
| 58 | + sparcasmprinter sparccodegen sparcdesc sparcdisassembler sparcinfo \ |
| 59 | + support symbolize systemz systemzasmparser systemzasmprinter \ |
| 60 | + systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen \ |
| 61 | + target transformutils vectorize x86 x86asmparser x86asmprinter \ |
| 62 | + x86codegen x86desc x86disassembler x86info x86utils xcore \ |
| 63 | + xcoreasmprinter xcorecodegen xcoredesc xcoredisassembler xcoreinfo;; |
| 64 | +--host-target) echo x86_64-unknown-haiku;; |
| 65 | +--has-rtti) echo YES;; |
| 66 | +--shared-mode) echo shared;; |
| 67 | +esac |
0 commit comments