File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33usage () {
4- echo " $0 [-b <build_dir>] [-c] [-d] [-- <meson_args>]"
5- echo -e " \t-c selects clang for build"
4+ echo " $0 [-b <build_dir>] [-c] [-s] [-d] [-- <meson_args>]"
5+ echo -e " \t-c selects clang instead of gcc"
6+ echo -e " \t-s selects nasm-segelf instead of nasm"
67}
78
89CROSS_F=" toolchain.ini"
910BLD=" build"
1011
11- while getopts " b:cdh " opt; do
12+ while getopts " b:csdh " opt; do
1213 case " $opt " in
1314 b)
1415 BLD=" $OPTARG "
1516 ;;
1617 c)
1718 CROSS_F=" toolchain-clang.ini"
1819 ;;
20+ s)
21+ CROSS_F=" toolchain-segelf.ini"
22+ ;;
1923 d)
2024 DEBUG=" 1"
2125 ;;
Original file line number Diff line number Diff line change 1+ [binaries]
2+ nasm = ' nasm-segelf'
3+ c = ' gcc'
4+ c_ld = ' bfd'
5+ cpp = ' g++'
6+ # Note: strip is currently unused. Compatible GNU strip is since binutils-2.42
7+ strip = ' strip'
8+ pkg-config = ' pkg-config'
9+
10+ [properties]
11+ needs_exe_wrapper = false
12+
13+ [constants]
14+ arch = ' i386-linux-gnu'
15+
16+ [host_machine]
17+ system = ' linux'
18+ cpu_family = ' x86'
19+ cpu = ' i386'
20+ endian = ' little'
21+
Original file line number Diff line number Diff line change 11[binaries]
2- nasm = ' nasm-segelf '
2+ nasm = ' nasm'
33c = ' gcc'
44c_ld = ' bfd'
55cpp = ' g++'
You can’t perform that action at this time.
0 commit comments