Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1 | # GENERATED FILE. DO NOT EDIT |
| 2 | # Generated by tools/cpp/gen_crosstool.py |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 3 | major_version: "local" |
| 4 | minor_version: "" |
| 5 | default_target_cpu: "same_as_host" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 6 | default_toolchain { |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 7 | cpu: "roborio" |
| 8 | toolchain_identifier: "roborio_linux" |
| 9 | } |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 10 | default_toolchain { |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 11 | cpu: "k8" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 12 | toolchain_identifier: "k8_linux" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 13 | } |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 14 | default_toolchain { |
| 15 | cpu: "armeabi-v7a" |
| 16 | toolchain_identifier: "stub_armeabi-v7a" |
| 17 | } |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 18 | default_toolchain { |
| 19 | cpu: "armhf-debian" |
| 20 | toolchain_identifier: "clang_linux_armhf" |
| 21 | } |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 22 | default_toolchain { |
| 23 | cpu: "cortex-m4f" |
| 24 | toolchain_identifier: "cortex-m4f" |
| 25 | } |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 26 | default_toolchain { |
| 27 | cpu: "cortex-m4f-k22" |
| 28 | toolchain_identifier: "cortex-m4f-k22" |
| 29 | } |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 30 | toolchain { |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 31 | toolchain_identifier: "stub_armeabi-v7a" |
| 32 | host_system_name: "armeabi-v7a" |
| 33 | target_system_name: "armeabi-v7a" |
| 34 | target_cpu: "armeabi-v7a" |
| 35 | target_libc: "armeabi-v7a" |
| 36 | compiler: "compiler" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 37 | abi_version: "armeabi-v7a" |
| 38 | abi_libc_version: "armeabi-v7a" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 39 | tool_path { |
| 40 | name: "ar" |
| 41 | path: "/bin/false" |
| 42 | } |
| 43 | tool_path { |
| 44 | name: "compat-ld" |
| 45 | path: "/bin/false" |
| 46 | } |
| 47 | tool_path { |
| 48 | name: "cpp" |
| 49 | path: "/bin/false" |
| 50 | } |
| 51 | tool_path { |
| 52 | name: "dwp" |
| 53 | path: "/bin/false" |
| 54 | } |
| 55 | tool_path { |
| 56 | name: "gcc" |
| 57 | path: "/bin/false" |
| 58 | } |
| 59 | tool_path { |
| 60 | name: "gcov" |
| 61 | path: "/bin/false" |
| 62 | } |
| 63 | tool_path { |
| 64 | name: "ld" |
| 65 | path: "/bin/false" |
| 66 | } |
| 67 | tool_path { |
| 68 | name: "nm" |
| 69 | path: "/bin/false" |
| 70 | } |
| 71 | tool_path { |
| 72 | name: "objcopy" |
| 73 | path: "/bin/false" |
| 74 | } |
| 75 | tool_path { |
| 76 | name: "objdump" |
| 77 | path: "/bin/false" |
| 78 | } |
| 79 | tool_path { |
| 80 | name: "strip" |
| 81 | path: "/bin/false" |
| 82 | } |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 83 | supports_gold_linker: false |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 84 | supports_thin_archives: false |
| 85 | needsPic: true |
| 86 | builtin_sysroot: "" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 87 | supports_normalizing_ar: false |
| 88 | supports_start_end_lib: false |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 89 | supports_interface_shared_objects: false |
| 90 | supports_incremental_linker: false |
| 91 | supports_fission: false |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 92 | } |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 93 | toolchain { |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 94 | toolchain_identifier: "k8_linux" |
| 95 | host_system_name: "local" |
| 96 | target_system_name: "k8" |
| 97 | target_cpu: "k8" |
| 98 | target_libc: "local" |
| 99 | compiler: "clang" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 100 | abi_version: "local" |
| 101 | abi_libc_version: "local" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 102 | tool_path { |
| 103 | name: "ar" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 104 | path: "clang_6p0/x86_64-linux-gnu-ar" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 105 | } |
| 106 | tool_path { |
| 107 | name: "compat-ld" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 108 | path: "clang_6p0/x86_64-linux-gnu-ld" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 109 | } |
| 110 | tool_path { |
| 111 | name: "cpp" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 112 | path: "clang_6p0/x86_64-linux-gnu-cpp" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 113 | } |
| 114 | tool_path { |
| 115 | name: "dwp" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 116 | path: "clang_6p0/x86_64-linux-gnu-dwp" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 117 | } |
| 118 | tool_path { |
| 119 | name: "gcc" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 120 | path: "clang_6p0/x86_64-linux-gnu-clang-6.0" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 121 | } |
| 122 | tool_path { |
| 123 | name: "gcov" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 124 | path: "clang_6p0/x86_64-linux-gnu-gcov" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 125 | } |
| 126 | tool_path { |
| 127 | name: "ld" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 128 | path: "clang_6p0/x86_64-linux-gnu-ld" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 129 | } |
| 130 | tool_path { |
| 131 | name: "nm" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 132 | path: "clang_6p0/x86_64-linux-gnu-nm" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 133 | } |
| 134 | tool_path { |
| 135 | name: "objcopy" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 136 | path: "clang_6p0/x86_64-linux-gnu-objcopy" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 137 | } |
| 138 | tool_path { |
| 139 | name: "objdump" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 140 | path: "clang_6p0/x86_64-linux-gnu-objdump" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 141 | } |
| 142 | tool_path { |
| 143 | name: "strip" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 144 | path: "clang_6p0/x86_64-linux-gnu-strip" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 145 | } |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 146 | supports_gold_linker: false |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 147 | supports_thin_archives: false |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 148 | needsPic: true |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 149 | compiler_flag: "--sysroot=external/amd64_debian_sysroot" |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 150 | compiler_flag: "-nostdinc" |
| 151 | compiler_flag: "-isystem" |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 152 | compiler_flag: "external/amd64_debian_sysroot/usr/include/c++/7" |
| 153 | compiler_flag: "-isystem" |
| 154 | compiler_flag: "external/amd64_debian_sysroot/usr/include/x86_64-linux-gnu/c++/7" |
| 155 | compiler_flag: "-isystem" |
| 156 | compiler_flag: "external/amd64_debian_sysroot/usr/include/c++/8/backward" |
| 157 | compiler_flag: "-isystem" |
| 158 | compiler_flag: "external/amd64_debian_sysroot/usr/lib/gcc/x86_64-linux-gnu/8/include" |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 159 | compiler_flag: "-isystem" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 160 | compiler_flag: "external/clang_6p0_repo/usr/lib/llvm-6.0/lib/clang/6.0.0/include" |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 161 | compiler_flag: "-isystem" |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 162 | compiler_flag: "external/amd64_debian_sysroot/usr/include/x86_64-linux-gnu" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 163 | compiler_flag: "-isystem" |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 164 | compiler_flag: "external/amd64_debian_sysroot/usr/include" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 165 | compiler_flag: "-D__STDC_FORMAT_MACROS" |
| 166 | compiler_flag: "-D__STDC_CONSTANT_MACROS" |
| 167 | compiler_flag: "-D__STDC_LIMIT_MACROS" |
| 168 | compiler_flag: "-D_FILE_OFFSET_BITS=64" |
| 169 | compiler_flag: "-DAOS_ARCHITECTURE_arm_frc" |
| 170 | compiler_flag: "-U_FORTIFY_SOURCE" |
| 171 | compiler_flag: "-D_FORTIFY_SOURCE=1" |
| 172 | compiler_flag: "-fstack-protector" |
| 173 | compiler_flag: "-fPIE" |
| 174 | compiler_flag: "-fcolor-diagnostics" |
| 175 | compiler_flag: "-fmessage-length=80" |
| 176 | compiler_flag: "-fmacro-backtrace-limit=0" |
| 177 | compiler_flag: "-Wall" |
| 178 | compiler_flag: "-Wextra" |
| 179 | compiler_flag: "-Wpointer-arith" |
| 180 | compiler_flag: "-Wstrict-aliasing" |
| 181 | compiler_flag: "-Wcast-qual" |
| 182 | compiler_flag: "-Wcast-align" |
| 183 | compiler_flag: "-Wwrite-strings" |
| 184 | compiler_flag: "-Wtype-limits" |
| 185 | compiler_flag: "-Wsign-compare" |
| 186 | compiler_flag: "-Wformat=2" |
| 187 | compiler_flag: "-Werror" |
| 188 | compiler_flag: "-fno-omit-frame-pointer" |
| 189 | compiler_flag: "-pipe" |
| 190 | compiler_flag: "-ggdb3" |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 191 | linker_flag: "-nodefaultlibs" |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 192 | linker_flag: "--sysroot=external/amd64_debian_sysroot" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 193 | linker_flag: "-lstdc++" |
Philipp Schrader | 9b1790e | 2018-03-10 20:21:30 -0800 | [diff] [blame] | 194 | linker_flag: "-lc" |
| 195 | linker_flag: "-lgcc" |
| 196 | linker_flag: "-lgcc_s" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 197 | linker_flag: "-Bexternal/clang_6p0_repo/usr/bin/" |
| 198 | linker_flag: "-Ltools/cpp/clang_6p0/clang_more_libs" |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 199 | linker_flag: "-Lexternal/amd64_debian_sysroot/usr/lib/gcc/x86_64-linux-gnu/7/" |
| 200 | linker_flag: "-Lexternal/amd64_debian_sysroot/usr/lib/x86_64-linux-gnu/" |
| 201 | linker_flag: "-Lexternal/amd64_debian_sysroot/usr/lib/" |
| 202 | linker_flag: "-Lexternal/amd64_debian_sysroot/lib/x86_64-linux-gnu/" |
| 203 | linker_flag: "-Lexternal/amd64_debian_sysroot/lib/" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 204 | linker_flag: "-no-canonical-prefixes" |
| 205 | linker_flag: "-fuse-ld=gold" |
| 206 | linker_flag: "-Wl,-z,relro,-z,now" |
| 207 | linker_flag: "-lm" |
| 208 | linker_flag: "-Wl,--build-id=md5" |
| 209 | linker_flag: "-Wl,--hash-style=gnu" |
| 210 | linker_flag: "-Wl,--warn-execstack" |
| 211 | linker_flag: "-Wl,--detect-odr-violations" |
| 212 | objcopy_embed_flag: "-I" |
| 213 | objcopy_embed_flag: "binary" |
| 214 | compilation_mode_flags { |
| 215 | mode: OPT |
| 216 | compiler_flag: "-O2" |
| 217 | compiler_flag: "-DNDEBUG" |
| 218 | compiler_flag: "-ffunction-sections" |
| 219 | compiler_flag: "-fdata-sections" |
| 220 | linker_flag: "-Wl,--gc-sections" |
| 221 | } |
| 222 | linking_mode_flags { |
| 223 | mode: DYNAMIC |
| 224 | } |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 225 | cxx_builtin_include_directory: "%package(@clang_6p0_repo//usr)%/lib/llvm-6.0/lib/clang/6.0.0/include" |
Brian Silverman | 60606c9 | 2020-01-15 22:45:04 -0800 | [diff] [blame] | 226 | cxx_builtin_include_directory: "%package(@amd64_debian_sysroot//usr)%/include" |
| 227 | cxx_builtin_include_directory: "%package(@amd64_debian_sysroot//usr)%/lib/gcc/x86_64-linux-gnu/7/include" |
| 228 | cxx_builtin_include_directory: "%package(@amd64_debian_sysroot//usr)%/lib/gcc/x86_64-linux-gnu/7/include-fixed" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 229 | builtin_sysroot: "" |
| 230 | unfiltered_cxx_flag: "-no-canonical-prefixes" |
| 231 | unfiltered_cxx_flag: "-Wno-builtin-macro-redefined" |
| 232 | unfiltered_cxx_flag: "-D__DATE__=\"redacted\"" |
| 233 | unfiltered_cxx_flag: "-D__TIMESTAMP__=\"redacted\"" |
| 234 | unfiltered_cxx_flag: "-D__TIME__=\"redacted\"" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 235 | unfiltered_cxx_flag: "-Wno-varargs" |
| 236 | unfiltered_cxx_flag: "-Wno-null-pointer-arithmetic" |
| 237 | unfiltered_cxx_flag: "-Wno-mismatched-new-delete" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 238 | supports_normalizing_ar: false |
| 239 | supports_start_end_lib: false |
| 240 | supports_interface_shared_objects: false |
| 241 | supports_incremental_linker: false |
| 242 | supports_fission: false |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 243 | feature { |
| 244 | name: "opt" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 245 | flag_set { |
| 246 | action: "preprocess-assemble" |
| 247 | action: "c-compile" |
| 248 | action: "c++-compile" |
| 249 | action: "c++-header-parsing" |
| 250 | action: "c++-header-preprocessing" |
| 251 | action: "c++-module-compile" |
| 252 | flag_group { |
| 253 | flag: "-DAOS_DEBUG=0" |
| 254 | } |
| 255 | } |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 256 | implies: "all_modes" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 257 | } |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 258 | feature { |
| 259 | name: "dbg" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 260 | flag_set { |
| 261 | action: "preprocess-assemble" |
| 262 | action: "c-compile" |
| 263 | action: "c++-compile" |
| 264 | action: "c++-header-parsing" |
| 265 | action: "c++-header-preprocessing" |
| 266 | action: "c++-module-compile" |
| 267 | flag_group { |
| 268 | flag: "-DAOS_DEBUG=1" |
| 269 | } |
Brian Silverman | a4a4ea6 | 2015-11-27 10:27:53 -0500 | [diff] [blame] | 270 | flag_group { |
| 271 | flag: "-fno-omit-frame-pointer" |
| 272 | } |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 273 | } |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 274 | implies: "all_modes" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 275 | } |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 276 | feature { |
| 277 | name: "fastbuild" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 278 | flag_set { |
| 279 | action: "preprocess-assemble" |
| 280 | action: "c-compile" |
| 281 | action: "c++-compile" |
| 282 | action: "c++-header-parsing" |
| 283 | action: "c++-header-preprocessing" |
| 284 | action: "c++-module-compile" |
| 285 | flag_group { |
| 286 | flag: "-DAOS_DEBUG=0" |
| 287 | } |
| 288 | } |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 289 | implies: "all_modes" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 290 | } |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 291 | feature { |
| 292 | name: "all_modes" |
| 293 | flag_set { |
Austin Schuh | a20ae72 | 2015-11-01 12:29:38 -0800 | [diff] [blame] | 294 | action: "preprocess-assemble" |
| 295 | action: "assemble" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 296 | action: "c-compile" |
| 297 | flag_group { |
| 298 | flag: "-std=gnu99" |
| 299 | } |
| 300 | } |
| 301 | flag_set { |
| 302 | action: "c++-compile" |
| 303 | action: "c++-header-parsing" |
| 304 | action: "c++-header-preprocessing" |
| 305 | action: "c++-module-compile" |
| 306 | flag_group { |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 307 | flag: "-std=gnu++1z" |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 308 | } |
Brian Silverman | 23a1b34 | 2015-10-11 23:44:09 -0400 | [diff] [blame] | 309 | } |
Brian Silverman | 12b3fc5 | 2015-10-11 19:38:33 -0400 | [diff] [blame] | 310 | } |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 311 | feature { |
| 312 | name: "pie_for_linking" |
| 313 | flag_set { |
| 314 | action: "c++-link-executable" |
| 315 | flag_group { |
| 316 | flag: "-pie" |
| 317 | } |
| 318 | } |
| 319 | enabled: true |
| 320 | } |
| 321 | } |
| 322 | toolchain { |
| 323 | toolchain_identifier: "roborio_linux" |
| 324 | host_system_name: "roborio" |
| 325 | target_system_name: "roborio" |
| 326 | target_cpu: "roborio" |
| 327 | target_libc: "roborio" |
| 328 | compiler: "gcc" |
| 329 | abi_version: "roborio" |
| 330 | abi_libc_version: "roborio" |
| 331 | tool_path { |
| 332 | name: "ar" |
| 333 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-ar" |
| 334 | } |
| 335 | tool_path { |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 336 | name: "as" |
| 337 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-as" |
| 338 | } |
| 339 | tool_path { |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 340 | name: "compat-ld" |
| 341 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-ld" |
| 342 | } |
| 343 | tool_path { |
| 344 | name: "cpp" |
| 345 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-cpp" |
| 346 | } |
| 347 | tool_path { |
| 348 | name: "dwp" |
| 349 | path: "/bin/false" |
| 350 | } |
| 351 | tool_path { |
| 352 | name: "gcc" |
| 353 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-gcc" |
| 354 | } |
| 355 | tool_path { |
| 356 | name: "gcov" |
| 357 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-gcov-4.9" |
| 358 | } |
| 359 | tool_path { |
| 360 | name: "ld" |
| 361 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-ld" |
| 362 | } |
| 363 | tool_path { |
| 364 | name: "nm" |
| 365 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-nm" |
| 366 | } |
| 367 | tool_path { |
| 368 | name: "objcopy" |
| 369 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-objcopy" |
| 370 | } |
| 371 | tool_path { |
| 372 | name: "objdump" |
| 373 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-objdump" |
| 374 | } |
| 375 | tool_path { |
| 376 | name: "strip" |
| 377 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-strip" |
| 378 | } |
| 379 | supports_gold_linker: false |
| 380 | supports_thin_archives: false |
| 381 | needsPic: true |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 382 | linker_flag: "-lstdc++" |
| 383 | linker_flag: "-Ltools/cpp/arm-frc-linux-gnueabi/libs" |
| 384 | linker_flag: "-no-canonical-prefixes" |
| 385 | linker_flag: "-Wl,-z,relro,-z,now" |
| 386 | linker_flag: "-lm" |
| 387 | linker_flag: "-pass-exit-codes" |
| 388 | linker_flag: "-Wl,--build-id=md5" |
| 389 | linker_flag: "-Wl,--hash-style=gnu" |
| 390 | objcopy_embed_flag: "-I" |
| 391 | objcopy_embed_flag: "binary" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 392 | linking_mode_flags { |
| 393 | mode: DYNAMIC |
| 394 | } |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 395 | cxx_builtin_include_directory: "%package(@arm_frc_linux_gnueabi_repo//arm-frc2020-linux-gnueabi/usr/lib/gcc/arm-frc2020-linux-gnueabi/7.3.0/include)%" |
| 396 | cxx_builtin_include_directory: "%package(@arm_frc_linux_gnueabi_repo//arm-frc2020-linux-gnueabi/usr/lib/gcc/arm-frc2020-linux-gnueabi/7.3.0/include-fixed)%" |
| 397 | cxx_builtin_include_directory: "%package(@arm_frc_linux_gnueabi_repo//arm-frc2020-linux-gnueabi/usr/include/c++/7.3.0/arm-frc2020-linux-gnueabi)%" |
| 398 | cxx_builtin_include_directory: "%package(@arm_frc_linux_gnueabi_repo//arm-frc2020-linux-gnueabi/usr/include/c++/7.3.0/backward)%" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 399 | builtin_sysroot: "" |
| 400 | unfiltered_cxx_flag: "-no-canonical-prefixes" |
| 401 | unfiltered_cxx_flag: "-Wno-builtin-macro-redefined" |
| 402 | unfiltered_cxx_flag: "-D__DATE__=\"redacted\"" |
| 403 | unfiltered_cxx_flag: "-D__TIMESTAMP__=\"redacted\"" |
| 404 | unfiltered_cxx_flag: "-D__TIME__=\"redacted\"" |
| 405 | supports_normalizing_ar: false |
| 406 | supports_start_end_lib: false |
| 407 | supports_interface_shared_objects: false |
| 408 | supports_incremental_linker: false |
| 409 | supports_fission: false |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 410 | feature { |
Austin Schuh | ef147de | 2018-10-27 21:19:00 -0700 | [diff] [blame] | 411 | name: "compile_flags1" |
| 412 | flag_set { |
| 413 | action: "assemble" |
| 414 | action: "preprocess-assemble" |
| 415 | action: "c-compile" |
| 416 | action: "c++-compile" |
| 417 | action: "c++-header-parsing" |
| 418 | action: "c++-module-compile" |
| 419 | action: "c++-module-codegen" |
| 420 | action: "lto-backend" |
| 421 | action: "clif-match" |
| 422 | flag_group { |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 423 | flag: "--sysroot=external/arm_frc_linux_gnueabi_repo/arm-frc2020-linux-gnueabi" |
Austin Schuh | ef147de | 2018-10-27 21:19:00 -0700 | [diff] [blame] | 424 | flag: "-nostdinc" |
| 425 | flag: "-isystem" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 426 | flag: "external/arm_frc_linux_gnueabi_repo/arm-frc2020-linux-gnueabi/usr/lib/gcc/arm-frc2020-linux-gnueabi/7.3.0/include" |
Austin Schuh | ef147de | 2018-10-27 21:19:00 -0700 | [diff] [blame] | 427 | flag: "-isystem" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 428 | flag: "external/arm_frc_linux_gnueabi_repo/arm-frc2020-linux-gnueabi/usr/lib/gcc/arm-frc2020-linux-gnueabi/7.3.0/include-fixed" |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 429 | } |
| 430 | } |
| 431 | flag_set { |
James Kuszmaul | ebdeaf5 | 2019-05-22 20:31:25 -0700 | [diff] [blame] | 432 | action: "assemble" |
| 433 | action: "preprocess-assemble" |
| 434 | action: "c++-compile" |
| 435 | action: "c++-header-parsing" |
| 436 | action: "c++-header-preprocessing" |
| 437 | flag_group { |
| 438 | flag: "-fno-canonical-system-headers" |
| 439 | } |
| 440 | } |
| 441 | flag_set { |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 442 | action: "c++-compile" |
| 443 | action: "c++-header-parsing" |
| 444 | action: "c++-module-compile" |
| 445 | action: "c++-module-codegen" |
| 446 | flag_group { |
Austin Schuh | ef147de | 2018-10-27 21:19:00 -0700 | [diff] [blame] | 447 | flag: "-isystem" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 448 | flag: "external/arm_frc_linux_gnueabi_repo/arm-frc2020-linux-gnueabi/usr/include/c++/7.3.0" |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 449 | flag: "-isystem" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 450 | flag: "external/arm_frc_linux_gnueabi_repo/arm-frc2020-linux-gnueabi/usr/include/c++/7.3.0/arm-frc2020-linux-gnueabi" |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 451 | flag: "-isystem" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 452 | flag: "external/arm_frc_linux_gnueabi_repo/arm-frc2020-linux-gnueabi/usr/include/c++/7.3.0/backward" |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 453 | } |
| 454 | } |
| 455 | flag_set { |
| 456 | action: "assemble" |
| 457 | action: "preprocess-assemble" |
| 458 | action: "c-compile" |
| 459 | action: "c++-compile" |
| 460 | action: "c++-header-parsing" |
| 461 | action: "c++-module-compile" |
| 462 | action: "c++-module-codegen" |
| 463 | action: "lto-backend" |
| 464 | action: "clif-match" |
| 465 | flag_group { |
| 466 | flag: "-isystem" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 467 | flag: "external/arm_frc_linux_gnueabi_repo/arm-frc2020-linux-gnueabi/usr/include" |
Austin Schuh | ef147de | 2018-10-27 21:19:00 -0700 | [diff] [blame] | 468 | flag: "-mfpu=neon" |
| 469 | flag: "-D__STDC_FORMAT_MACROS" |
| 470 | flag: "-D__STDC_CONSTANT_MACROS" |
| 471 | flag: "-D__STDC_LIMIT_MACROS" |
| 472 | flag: "-D_FILE_OFFSET_BITS=64" |
| 473 | flag: "-DAOS_ARCHITECTURE_arm_frc" |
| 474 | flag: "-U_FORTIFY_SOURCE" |
| 475 | flag: "-fstack-protector" |
| 476 | flag: "-fPIE" |
| 477 | flag: "-fdiagnostics-color=always" |
| 478 | flag: "-Wall" |
| 479 | flag: "-Wextra" |
| 480 | flag: "-Wpointer-arith" |
| 481 | flag: "-Wstrict-aliasing" |
| 482 | flag: "-Wcast-qual" |
Austin Schuh | ef147de | 2018-10-27 21:19:00 -0700 | [diff] [blame] | 483 | flag: "-Wwrite-strings" |
| 484 | flag: "-Wtype-limits" |
| 485 | flag: "-Wsign-compare" |
| 486 | flag: "-Wformat=2" |
| 487 | flag: "-Werror" |
| 488 | flag: "-Wunused-local-typedefs" |
Brian Silverman | 21280c7 | 2019-12-18 20:26:12 -0800 | [diff] [blame] | 489 | flag: "-Wno-psabi" |
Austin Schuh | ef147de | 2018-10-27 21:19:00 -0700 | [diff] [blame] | 490 | flag: "-fno-omit-frame-pointer" |
| 491 | flag: "-D__has_feature(x)=0" |
| 492 | flag: "-pipe" |
| 493 | flag: "-ggdb3" |
| 494 | } |
| 495 | } |
| 496 | enabled: true |
| 497 | } |
| 498 | feature { |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 499 | name: "opt" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 500 | flag_set { |
Austin Schuh | ef147de | 2018-10-27 21:19:00 -0700 | [diff] [blame] | 501 | action: "assemble" |
| 502 | action: "preprocess-assemble" |
| 503 | action: "c-compile" |
| 504 | action: "c++-compile" |
| 505 | action: "c++-module-compile" |
| 506 | action: "objc-compile" |
| 507 | action: "objc++-compile" |
| 508 | action: "c++-header-parsing" |
| 509 | action: "linkstamp-compile" |
| 510 | flag_group { |
| 511 | flag: "-O2" |
| 512 | flag: "-DNDEBUG" |
| 513 | flag: "-D_FORTIFY_SOURCE=1" |
| 514 | flag: "-ffunction-sections" |
| 515 | flag: "-fdata-sections" |
| 516 | } |
| 517 | } |
| 518 | flag_set { |
| 519 | action: "c++-link-executable" |
| 520 | action: "c++-link-nodeps-dynamic-library" |
| 521 | action: "c++-link-dynamic-library" |
| 522 | flag_group { |
| 523 | flag: "-Wl,--gc-sections" |
| 524 | } |
| 525 | } |
| 526 | implies: "opt_post" |
| 527 | } |
| 528 | feature { |
Austin Schuh | ef147de | 2018-10-27 21:19:00 -0700 | [diff] [blame] | 529 | name: "dependency_file" |
| 530 | flag_set { |
| 531 | action: "assemble" |
| 532 | action: "preprocess-assemble" |
| 533 | action: "c-compile" |
| 534 | action: "c++-compile" |
| 535 | action: "c++-module-compile" |
| 536 | action: "objc-compile" |
| 537 | action: "objc++-compile" |
| 538 | action: "c++-header-parsing" |
| 539 | action: "clif-match" |
| 540 | flag_group { |
| 541 | flag: "-MD" |
| 542 | flag: "-MF" |
| 543 | flag: "%{dependency_file}" |
| 544 | } |
| 545 | expand_if_all_available: "dependency_file" |
| 546 | } |
| 547 | } |
| 548 | feature { |
| 549 | name: "random_seed" |
| 550 | flag_set { |
| 551 | action: "c++-compile" |
| 552 | action: "c++-module-codegen" |
| 553 | action: "c++-module-compile" |
| 554 | flag_group { |
| 555 | flag: "-frandom-seed=%{output_file}" |
| 556 | expand_if_all_available: "output_file" |
| 557 | } |
| 558 | } |
| 559 | } |
| 560 | feature { |
| 561 | name: "pic" |
| 562 | flag_set { |
| 563 | action: "assemble" |
| 564 | action: "preprocess-assemble" |
| 565 | action: "linkstamp-compile" |
| 566 | action: "c-compile" |
| 567 | action: "c++-compile" |
| 568 | action: "c++-module-codegen" |
| 569 | action: "c++-module-compile" |
| 570 | flag_group { |
| 571 | flag: "-fPIC" |
| 572 | } |
| 573 | expand_if_all_available: "pic" |
| 574 | } |
| 575 | } |
| 576 | feature { |
| 577 | name: "preprocessor_defines" |
| 578 | flag_set { |
| 579 | action: "preprocess-assemble" |
| 580 | action: "linkstamp-compile" |
| 581 | action: "c-compile" |
| 582 | action: "c++-compile" |
| 583 | action: "c++-header-parsing" |
| 584 | action: "c++-module-compile" |
| 585 | action: "clif-match" |
| 586 | flag_group { |
| 587 | flag: "-D%{preprocessor_defines}" |
| 588 | iterate_over: "preprocessor_defines" |
| 589 | } |
| 590 | } |
| 591 | } |
| 592 | feature { |
| 593 | name: "include_paths" |
| 594 | flag_set { |
| 595 | action: "preprocess-assemble" |
| 596 | action: "c-compile" |
| 597 | action: "c++-compile" |
| 598 | action: "c++-header-parsing" |
| 599 | action: "c++-header-preprocessing" |
| 600 | action: "c++-module-compile" |
| 601 | flag_group { |
| 602 | flag: "-iquote" |
| 603 | flag: "%{quote_include_paths}" |
| 604 | iterate_over: "quote_include_paths" |
| 605 | } |
| 606 | flag_group { |
| 607 | flag: "-I%{include_paths}" |
| 608 | iterate_over: "include_paths" |
| 609 | } |
| 610 | flag_group { |
| 611 | flag: "-isystem" |
| 612 | flag: "%{system_include_paths}" |
| 613 | iterate_over: "system_include_paths" |
| 614 | } |
| 615 | } |
| 616 | } |
| 617 | feature { |
| 618 | name: "opt_post" |
| 619 | flag_set { |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 620 | action: "preprocess-assemble" |
| 621 | action: "c-compile" |
| 622 | action: "c++-compile" |
| 623 | action: "c++-header-parsing" |
| 624 | action: "c++-header-preprocessing" |
| 625 | action: "c++-module-compile" |
| 626 | flag_group { |
| 627 | flag: "-DAOS_DEBUG=0" |
| 628 | } |
| 629 | } |
| 630 | } |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 631 | feature { |
| 632 | name: "dbg" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 633 | flag_set { |
| 634 | action: "preprocess-assemble" |
| 635 | action: "c-compile" |
| 636 | action: "c++-compile" |
| 637 | action: "c++-header-parsing" |
| 638 | action: "c++-header-preprocessing" |
| 639 | action: "c++-module-compile" |
| 640 | flag_group { |
| 641 | flag: "-DAOS_DEBUG=1" |
| 642 | } |
Brian Silverman | a4a4ea6 | 2015-11-27 10:27:53 -0500 | [diff] [blame] | 643 | flag_group { |
| 644 | flag: "-fno-omit-frame-pointer" |
| 645 | } |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 646 | } |
| 647 | } |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 648 | feature { |
| 649 | name: "fastbuild" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 650 | flag_set { |
| 651 | action: "preprocess-assemble" |
| 652 | action: "c-compile" |
| 653 | action: "c++-compile" |
| 654 | action: "c++-header-parsing" |
| 655 | action: "c++-header-preprocessing" |
| 656 | action: "c++-module-compile" |
| 657 | flag_group { |
| 658 | flag: "-DAOS_DEBUG=0" |
| 659 | } |
| 660 | } |
| 661 | } |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 662 | feature { |
| 663 | name: "all_modes" |
| 664 | flag_set { |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 665 | action: "preprocess-assemble" |
| 666 | action: "assemble" |
Brian Silverman | a4a4ea6 | 2015-11-27 10:27:53 -0500 | [diff] [blame] | 667 | action: "c-compile" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 668 | flag_group { |
| 669 | flag: "-std=gnu99" |
| 670 | } |
| 671 | } |
| 672 | flag_set { |
| 673 | action: "c++-compile" |
| 674 | action: "c++-header-parsing" |
| 675 | action: "c++-header-preprocessing" |
| 676 | action: "c++-module-compile" |
| 677 | flag_group { |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 678 | flag: "-std=gnu++1z" |
Austin Schuh | f6b9463 | 2019-02-02 22:11:27 -0800 | [diff] [blame] | 679 | flag: "-fno-sized-deallocation" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 680 | } |
| 681 | } |
| 682 | flag_set { |
| 683 | action: "preprocess-assemble" |
| 684 | action: "assemble" |
| 685 | action: "c++-link" |
| 686 | action: "c++-compile" |
| 687 | action: "c++-header-parsing" |
| 688 | action: "c++-header-preprocessing" |
| 689 | action: "c++-module-compile" |
| 690 | action: "c-compile" |
| 691 | flag_group { |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 692 | flag: "-pthread" |
| 693 | } |
| 694 | } |
Austin Schuh | ef147de | 2018-10-27 21:19:00 -0700 | [diff] [blame] | 695 | enabled: true |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 696 | } |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 697 | feature { |
| 698 | name: "pie_for_linking" |
| 699 | flag_set { |
| 700 | action: "c++-link-executable" |
| 701 | flag_group { |
| 702 | flag: "-pie" |
| 703 | } |
| 704 | } |
| 705 | enabled: true |
| 706 | } |
| 707 | } |
| 708 | toolchain { |
| 709 | toolchain_identifier: "clang_linux_armhf" |
| 710 | host_system_name: "linux" |
| 711 | target_system_name: "arm_a15" |
| 712 | target_cpu: "armhf-debian" |
| 713 | target_libc: "glibc_2.19" |
| 714 | compiler: "clang" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 715 | abi_version: "clang_6.0" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 716 | abi_libc_version: "glibc_2.19" |
| 717 | tool_path { |
| 718 | name: "ar" |
| 719 | path: "linaro_linux_gcc/arm-linux-gnueabihf-ar" |
| 720 | } |
| 721 | tool_path { |
| 722 | name: "compat-ld" |
| 723 | path: "linaro_linux_gcc/arm-linux-gnueabihf-ld" |
| 724 | } |
| 725 | tool_path { |
| 726 | name: "cpp" |
| 727 | path: "linaro_linux_gcc/clang_bin/clang" |
| 728 | } |
| 729 | tool_path { |
| 730 | name: "dwp" |
| 731 | path: "linaro_linux_gcc/arm-linux-gnueabihf-dwp" |
| 732 | } |
| 733 | tool_path { |
| 734 | name: "gcc" |
| 735 | path: "linaro_linux_gcc/clang_bin/clang" |
| 736 | } |
| 737 | tool_path { |
| 738 | name: "gcov" |
| 739 | path: "arm-frc-linux-gnueabi/arm-frc-linux-gnueabi-gcov-4.9" |
| 740 | } |
| 741 | tool_path { |
| 742 | name: "ld" |
| 743 | path: "linaro_linux_gcc/arm-linux-gnueabihf-ld" |
| 744 | } |
| 745 | tool_path { |
| 746 | name: "nm" |
| 747 | path: "linaro_linux_gcc/arm-linux-gnueabihf-nm" |
| 748 | } |
| 749 | tool_path { |
| 750 | name: "objcopy" |
| 751 | path: "linaro_linux_gcc/arm-linux-gnueabihf-objcopy" |
| 752 | } |
| 753 | tool_path { |
| 754 | name: "objdump" |
| 755 | path: "linaro_linux_gcc/arm-linux-gnueabihf-objdump" |
| 756 | } |
| 757 | tool_path { |
| 758 | name: "strip" |
| 759 | path: "linaro_linux_gcc/arm-linux-gnueabihf-strip" |
| 760 | } |
| 761 | supports_gold_linker: false |
| 762 | supports_thin_archives: true |
| 763 | needsPic: true |
| 764 | compiler_flag: "-target" |
| 765 | compiler_flag: "armv7a-arm-linux-gnueabif" |
Brian Silverman | bf4c131 | 2020-01-12 11:35:45 -0800 | [diff] [blame] | 766 | compiler_flag: "--sysroot=external/armhf_debian_rootfs" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 767 | compiler_flag: "-mfloat-abi=hard" |
| 768 | compiler_flag: "-mfpu=vfpv3-d16" |
| 769 | compiler_flag: "-nostdinc" |
| 770 | compiler_flag: "-isystem" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 771 | compiler_flag: "external/linaro_linux_gcc_repo/lib/gcc/arm-linux-gnueabihf/7.4.1/include" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 772 | compiler_flag: "-isystem" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 773 | compiler_flag: "external/linaro_linux_gcc_repo/lib/gcc/arm-linux-gnueabihf/7.4.1/include-fixed" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 774 | compiler_flag: "-isystem" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 775 | compiler_flag: "external/linaro_linux_gcc_repo/arm-linux-gnueabihf/include/c++/7.4.1/arm-linux-gnueabihf" |
| 776 | compiler_flag: "-isystem" |
| 777 | compiler_flag: "external/linaro_linux_gcc_repo/arm-linux-gnueabihf/include/c++/7.4.1" |
| 778 | compiler_flag: "-isystem" |
| 779 | compiler_flag: "external/linaro_linux_gcc_repo/include/c++/7.4.1/arm-linux-gnueabihf" |
| 780 | compiler_flag: "-isystem" |
| 781 | compiler_flag: "external/linaro_linux_gcc_repo/include/c++/7.4.1" |
| 782 | compiler_flag: "-isystem" |
Brian Silverman | bf4c131 | 2020-01-12 11:35:45 -0800 | [diff] [blame] | 783 | compiler_flag: "external/armhf_debian_rootfs/usr/include" |
| 784 | compiler_flag: "-isystem" |
| 785 | compiler_flag: "external/armhf_debian_rootfs/usr/include/arm-linux-gnueabihf" |
Austin Schuh | e84c3ed | 2019-12-14 15:29:48 -0800 | [diff] [blame] | 786 | compiler_flag: "-isystem" |
| 787 | compiler_flag: "external/org_frc971/third_party" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 788 | compiler_flag: "-D__STDC_FORMAT_MACROS" |
| 789 | compiler_flag: "-D__STDC_CONSTANT_MACROS" |
| 790 | compiler_flag: "-D__STDC_LIMIT_MACROS" |
| 791 | compiler_flag: "-D_FILE_OFFSET_BITS=64" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 792 | compiler_flag: "-DAOS_ARCHITECTURE_armhf" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 793 | compiler_flag: "-U_FORTIFY_SOURCE" |
| 794 | compiler_flag: "-fstack-protector" |
| 795 | compiler_flag: "-fPIE" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 796 | compiler_flag: "-fdiagnostics-color=always" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 797 | compiler_flag: "-Wall" |
| 798 | compiler_flag: "-Wextra" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 799 | compiler_flag: "-Wpointer-arith" |
Brian Silverman | 594be0d | 2015-10-31 17:56:23 -0400 | [diff] [blame] | 800 | compiler_flag: "-Wstrict-aliasing" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 801 | compiler_flag: "-Wcast-qual" |
| 802 | compiler_flag: "-Wcast-align" |
| 803 | compiler_flag: "-Wwrite-strings" |
| 804 | compiler_flag: "-Wtype-limits" |
| 805 | compiler_flag: "-Wsign-compare" |
| 806 | compiler_flag: "-Wformat=2" |
| 807 | compiler_flag: "-Werror" |
Brian Silverman | a4a4ea6 | 2015-11-27 10:27:53 -0500 | [diff] [blame] | 808 | compiler_flag: "-Wunused-local-typedefs" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 809 | compiler_flag: "-fno-omit-frame-pointer" |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 810 | compiler_flag: "-pipe" |
Brian Silverman | d254040 | 2015-11-28 18:35:00 -0500 | [diff] [blame] | 811 | compiler_flag: "-ggdb3" |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 812 | linker_flag: "-target" |
| 813 | linker_flag: "armv7a-arm-linux-gnueabif" |
Brian Silverman | bf4c131 | 2020-01-12 11:35:45 -0800 | [diff] [blame] | 814 | linker_flag: "--sysroot=external/armhf_debian_rootfs" |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 815 | linker_flag: "-lstdc++" |
| 816 | linker_flag: "-Ltools/cpp/linaro_linux_gcc/clang_more_libs" |
Brian Silverman | bf4c131 | 2020-01-12 11:35:45 -0800 | [diff] [blame] | 817 | linker_flag: "-Lexternal/armhf_debian_rootfs/usr/lib/gcc/arm-linux-gnueabihf/8" |
| 818 | linker_flag: "-Lexternal/armhf_debian_rootfs/lib/arm-linux-gnueabihf" |
| 819 | linker_flag: "-Lexternal/armhf_debian_rootfs/usr/lib/arm-linux-gnueabihf" |
| 820 | linker_flag: "-Lexternal/armhf_debian_rootfs/lib" |
| 821 | linker_flag: "-Lexternal/armhf_debian_rootfs/usr/lib" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 822 | linker_flag: "-Lexternal/linaro_linux_gcc_repo/lib/gcc/arm-linux-gnueabihf/7.4.1" |
| 823 | linker_flag: "-Bexternal/linaro_linux_gcc_repo/lib/gcc/arm-linux-gnueabihf/7.4.1" |
| 824 | linker_flag: "-Bexternal/linaro_linux_gcc_repo/arm-linux-gnueabihf/bin" |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 825 | linker_flag: "-Wl,--dynamic-linker=/lib/ld-linux-armhf.so.3" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 826 | linker_flag: "-no-canonical-prefixes" |
| 827 | linker_flag: "-Wl,-z,relro,-z,now" |
| 828 | linker_flag: "-lm" |
| 829 | linker_flag: "-Wl,--build-id=md5" |
| 830 | linker_flag: "-Wl,--hash-style=gnu" |
| 831 | objcopy_embed_flag: "-I" |
| 832 | objcopy_embed_flag: "binary" |
| 833 | compilation_mode_flags { |
| 834 | mode: OPT |
| 835 | compiler_flag: "-O2" |
| 836 | compiler_flag: "-DNDEBUG" |
| 837 | compiler_flag: "-D_FORTIFY_SOURCE=1" |
| 838 | compiler_flag: "-ffunction-sections" |
| 839 | compiler_flag: "-fdata-sections" |
| 840 | linker_flag: "-Wl,--gc-sections" |
| 841 | } |
| 842 | linking_mode_flags { |
| 843 | mode: DYNAMIC |
| 844 | } |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 845 | cxx_builtin_include_directory: "%package(@linaro_linux_gcc_repo//include)%" |
Brian Silverman | bf4c131 | 2020-01-12 11:35:45 -0800 | [diff] [blame] | 846 | cxx_builtin_include_directory: "%package(@armhf_debian_rootfs//usr/include)%" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 847 | cxx_builtin_include_directory: "%package(@linaro_linux_gcc_repo//include)%/c++/7.4.1" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 848 | cxx_builtin_include_directory: "%package(@linaro_linux_gcc_repo//lib/gcc/arm-linux-gnueabihf/7.4.1/include)%" |
| 849 | cxx_builtin_include_directory: "%package(@linaro_linux_gcc_repo//lib/gcc/arm-linux-gnueabihf/7.4.1/include-fixed)%" |
| 850 | cxx_builtin_include_directory: "%package(@linaro_linux_gcc_repo//arm-linux-gnueabihf/include)%/c++/7.4.1" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 851 | builtin_sysroot: "" |
| 852 | unfiltered_cxx_flag: "-no-canonical-prefixes" |
| 853 | unfiltered_cxx_flag: "-Wno-builtin-macro-redefined" |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 854 | unfiltered_cxx_flag: "-Wno-mismatched-new-delete" |
| 855 | unfiltered_cxx_flag: "-Wno-null-pointer-arithmetic" |
| 856 | unfiltered_cxx_flag: "-Wno-varargs" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 857 | unfiltered_cxx_flag: "-D__DATE__=\"redacted\"" |
| 858 | unfiltered_cxx_flag: "-D__TIMESTAMP__=\"redacted\"" |
| 859 | unfiltered_cxx_flag: "-D__TIME__=\"redacted\"" |
| 860 | supports_normalizing_ar: true |
| 861 | supports_start_end_lib: false |
| 862 | supports_interface_shared_objects: false |
| 863 | supports_incremental_linker: false |
| 864 | supports_fission: false |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 865 | feature { |
| 866 | name: "opt" |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 867 | flag_set { |
| 868 | action: "preprocess-assemble" |
| 869 | action: "c-compile" |
| 870 | action: "c++-compile" |
| 871 | action: "c++-header-parsing" |
| 872 | action: "c++-header-preprocessing" |
| 873 | action: "c++-module-compile" |
| 874 | flag_group { |
| 875 | flag: "-DAOS_DEBUG=0" |
| 876 | } |
| 877 | } |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 878 | implies: "all_modes" |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 879 | } |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 880 | feature { |
| 881 | name: "dbg" |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 882 | flag_set { |
| 883 | action: "preprocess-assemble" |
| 884 | action: "c-compile" |
| 885 | action: "c++-compile" |
| 886 | action: "c++-header-parsing" |
| 887 | action: "c++-header-preprocessing" |
| 888 | action: "c++-module-compile" |
| 889 | flag_group { |
| 890 | flag: "-DAOS_DEBUG=1" |
| 891 | } |
| 892 | flag_group { |
| 893 | flag: "-fno-omit-frame-pointer" |
| 894 | } |
| 895 | } |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 896 | implies: "all_modes" |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 897 | } |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 898 | feature { |
| 899 | name: "fastbuild" |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 900 | flag_set { |
| 901 | action: "preprocess-assemble" |
| 902 | action: "c-compile" |
| 903 | action: "c++-compile" |
| 904 | action: "c++-header-parsing" |
| 905 | action: "c++-header-preprocessing" |
| 906 | action: "c++-module-compile" |
| 907 | flag_group { |
| 908 | flag: "-DAOS_DEBUG=0" |
| 909 | } |
| 910 | } |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 911 | implies: "all_modes" |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 912 | } |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 913 | feature { |
| 914 | name: "all_modes" |
| 915 | flag_set { |
| 916 | action: "preprocess-assemble" |
| 917 | action: "assemble" |
| 918 | action: "c-compile" |
| 919 | flag_group { |
| 920 | flag: "-std=gnu99" |
| 921 | } |
| 922 | } |
| 923 | flag_set { |
| 924 | action: "c++-compile" |
| 925 | action: "c++-header-parsing" |
| 926 | action: "c++-header-preprocessing" |
| 927 | action: "c++-module-compile" |
| 928 | flag_group { |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 929 | flag: "-std=gnu++1z" |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 930 | } |
| 931 | } |
| 932 | flag_set { |
| 933 | action: "preprocess-assemble" |
| 934 | action: "assemble" |
| 935 | action: "c++-link" |
| 936 | action: "c++-compile" |
| 937 | action: "c++-header-parsing" |
| 938 | action: "c++-header-preprocessing" |
| 939 | action: "c++-module-compile" |
| 940 | action: "c-compile" |
| 941 | flag_group { |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 942 | flag: "-pthread" |
| 943 | } |
| 944 | } |
| 945 | } |
Austin Schuh | 137d945 | 2018-07-07 15:42:36 -0700 | [diff] [blame] | 946 | feature { |
| 947 | name: "pie_for_linking" |
Austin Schuh | 137d945 | 2018-07-07 15:42:36 -0700 | [diff] [blame] | 948 | flag_set { |
| 949 | action: "c++-link-executable" |
| 950 | flag_group { |
| 951 | flag: "-pie" |
| 952 | } |
| 953 | } |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 954 | enabled: true |
Austin Schuh | 137d945 | 2018-07-07 15:42:36 -0700 | [diff] [blame] | 955 | } |
Brian Silverman | 0d57fc8 | 2016-01-24 21:02:53 -0500 | [diff] [blame] | 956 | } |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 957 | toolchain { |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 958 | toolchain_identifier: "cortex-m4f" |
| 959 | host_system_name: "local" |
| 960 | target_system_name: "cortex-m4f" |
| 961 | target_cpu: "cortex-m4f" |
| 962 | target_libc: "cortex-m4f" |
| 963 | compiler: "gcc" |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 964 | abi_version: "cortex-m4f" |
| 965 | abi_libc_version: "cortex-m4f" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 966 | tool_path { |
| 967 | name: "ar" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 968 | path: "gcc_arm_none_eabi/arm-none-eabi-ar" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 969 | } |
| 970 | tool_path { |
| 971 | name: "compat-ld" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 972 | path: "gcc_arm_none_eabi/arm-none-eabi-ld" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 973 | } |
| 974 | tool_path { |
| 975 | name: "cpp" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 976 | path: "gcc_arm_none_eabi/arm-none-eabi-cpp" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 977 | } |
| 978 | tool_path { |
| 979 | name: "dwp" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 980 | path: "gcc_arm_none_eabi/arm-none-eabi-dwp" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 981 | } |
| 982 | tool_path { |
| 983 | name: "gcc" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 984 | path: "gcc_arm_none_eabi/arm-none-eabi-gcc" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 985 | } |
| 986 | tool_path { |
| 987 | name: "gcov" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 988 | path: "gcc_arm_none_eabi/arm-none-eabi-gcov" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 989 | } |
| 990 | tool_path { |
| 991 | name: "ld" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 992 | path: "gcc_arm_none_eabi/arm-none-eabi-ld" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 993 | } |
| 994 | tool_path { |
| 995 | name: "nm" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 996 | path: "gcc_arm_none_eabi/arm-none-eabi-nm" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 997 | } |
| 998 | tool_path { |
| 999 | name: "objcopy" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 1000 | path: "gcc_arm_none_eabi/arm-none-eabi-objcopy" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1001 | } |
| 1002 | tool_path { |
| 1003 | name: "objdump" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 1004 | path: "gcc_arm_none_eabi/arm-none-eabi-objdump" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1005 | } |
| 1006 | tool_path { |
| 1007 | name: "strip" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 1008 | path: "gcc_arm_none_eabi/arm-none-eabi-strip" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1009 | } |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1010 | supports_gold_linker: false |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1011 | supports_thin_archives: false |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1012 | needsPic: false |
| 1013 | compiler_flag: "-D__STDC_FORMAT_MACROS" |
| 1014 | compiler_flag: "-D__STDC_CONSTANT_MACROS" |
| 1015 | compiler_flag: "-D__STDC_LIMIT_MACROS" |
| 1016 | compiler_flag: "-D__MK64FX512__" |
| 1017 | compiler_flag: "-DF_CPU=120000000" |
| 1018 | compiler_flag: "-Wl,--gc-sections" |
| 1019 | compiler_flag: "-D__have_long32" |
| 1020 | compiler_flag: "-fstack-protector" |
| 1021 | compiler_flag: "-mcpu=cortex-m4" |
| 1022 | compiler_flag: "-mfpu=fpv4-sp-d16" |
| 1023 | compiler_flag: "-mthumb" |
| 1024 | compiler_flag: "-mfloat-abi=hard" |
| 1025 | compiler_flag: "-fno-strict-aliasing" |
| 1026 | compiler_flag: "-fmessage-length=80" |
| 1027 | compiler_flag: "-fmax-errors=20" |
| 1028 | compiler_flag: "-Wall" |
| 1029 | compiler_flag: "-Wextra" |
| 1030 | compiler_flag: "-Wpointer-arith" |
| 1031 | compiler_flag: "-Wcast-qual" |
| 1032 | compiler_flag: "-Wwrite-strings" |
| 1033 | compiler_flag: "-Wtype-limits" |
| 1034 | compiler_flag: "-Wsign-compare" |
| 1035 | compiler_flag: "-Wformat=2" |
| 1036 | compiler_flag: "-Werror" |
| 1037 | compiler_flag: "-Wstrict-aliasing=2" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 1038 | compiler_flag: "-Wno-misleading-indentation" |
| 1039 | compiler_flag: "-Wno-int-in-bool-context" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1040 | compiler_flag: "-Wdouble-promotion" |
| 1041 | compiler_flag: "-pipe" |
| 1042 | compiler_flag: "-g" |
| 1043 | compiler_flag: "-fno-common" |
| 1044 | compiler_flag: "-ffreestanding" |
| 1045 | compiler_flag: "-fbuiltin" |
| 1046 | linker_flag: "-no-canonical-prefixes" |
| 1047 | linker_flag: "-mcpu=cortex-m4" |
| 1048 | linker_flag: "-mfpu=fpv4-sp-d16" |
| 1049 | linker_flag: "-mthumb" |
| 1050 | linker_flag: "-mfloat-abi=hard" |
| 1051 | linker_flag: "-fno-strict-aliasing" |
| 1052 | linker_flag: "--specs=nano.specs" |
| 1053 | linker_flag: "-lgcc" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 1054 | linker_flag: "-lstdc++_nano" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1055 | linker_flag: "-lm" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 1056 | linker_flag: "-lc_nano" |
Brian Silverman | d4dc126 | 2018-09-23 16:50:34 -0700 | [diff] [blame] | 1057 | linker_flag: "-Tmotors/core/kinetis_512_256.ld" |
| 1058 | linker_flag: "-Tmotors/core/kinetis_sections.ld" |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1059 | objcopy_embed_flag: "-I" |
| 1060 | objcopy_embed_flag: "binary" |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1061 | compilation_mode_flags { |
| 1062 | mode: OPT |
| 1063 | compiler_flag: "-O2" |
| 1064 | compiler_flag: "-finline-functions" |
| 1065 | compiler_flag: "-ffast-math" |
| 1066 | compiler_flag: "-funroll-loops" |
| 1067 | compiler_flag: "-DNDEBUG" |
| 1068 | compiler_flag: "-ffunction-sections" |
| 1069 | linker_flag: "-Wl,--gc-sections" |
| 1070 | } |
| 1071 | linking_mode_flags { |
| 1072 | mode: FULLY_STATIC |
| 1073 | } |
| 1074 | cxx_builtin_include_directory: "/usr/lib/gcc/arm-none-eabi/4.8/include" |
| 1075 | cxx_builtin_include_directory: "/usr/lib/gcc/arm-none-eabi/4.8/include-fixed" |
| 1076 | cxx_builtin_include_directory: "/usr/lib/arm-none-eabi/include" |
| 1077 | cxx_builtin_include_directory: "/usr/include/newlib" |
| 1078 | builtin_sysroot: "" |
| 1079 | unfiltered_cxx_flag: "-no-canonical-prefixes" |
| 1080 | unfiltered_cxx_flag: "-Wno-builtin-macro-redefined" |
| 1081 | unfiltered_cxx_flag: "-D__DATE__=\"redacted\"" |
| 1082 | unfiltered_cxx_flag: "-D__TIMESTAMP__=\"redacted\"" |
| 1083 | unfiltered_cxx_flag: "-D__TIME__=\"redacted\"" |
| 1084 | supports_normalizing_ar: false |
| 1085 | supports_start_end_lib: false |
| 1086 | supports_interface_shared_objects: false |
| 1087 | supports_incremental_linker: false |
| 1088 | supports_fission: false |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1089 | feature { |
| 1090 | name: "dbg" |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1091 | flag_set { |
| 1092 | action: "preprocess-assemble" |
| 1093 | action: "c-compile" |
| 1094 | action: "c++-compile" |
| 1095 | action: "c++-header-parsing" |
| 1096 | action: "c++-header-preprocessing" |
| 1097 | action: "c++-module-compile" |
| 1098 | flag_group { |
| 1099 | flag: "-fno-omit-frame-pointer" |
| 1100 | } |
| 1101 | } |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1102 | implies: "all_modes" |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1103 | } |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1104 | feature { |
| 1105 | name: "opt" |
| 1106 | implies: "all_modes" |
| 1107 | } |
| 1108 | feature { |
| 1109 | name: "fastbuild" |
| 1110 | implies: "all_modes" |
| 1111 | } |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1112 | feature { |
| 1113 | name: "all_modes" |
| 1114 | flag_set { |
| 1115 | action: "preprocess-assemble" |
| 1116 | action: "assemble" |
| 1117 | action: "c-compile" |
| 1118 | flag_group { |
| 1119 | flag: "--std=gnu99" |
| 1120 | } |
| 1121 | } |
| 1122 | flag_set { |
| 1123 | action: "c++-compile" |
| 1124 | action: "c++-header-parsing" |
| 1125 | action: "c++-header-preprocessing" |
| 1126 | action: "c++-module-compile" |
| 1127 | flag_group { |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 1128 | flag: "--std=gnu++1z" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 1129 | flag: "-fno-exceptions" |
| 1130 | flag: "-fno-rtti" |
| 1131 | } |
| 1132 | } |
| 1133 | } |
| 1134 | feature { |
| 1135 | name: "include_paths" |
| 1136 | flag_set { |
| 1137 | action: "preprocess-assemble" |
| 1138 | action: "c-compile" |
| 1139 | action: "c++-compile" |
| 1140 | action: "c++-header-parsing" |
| 1141 | action: "c++-header-preprocessing" |
| 1142 | action: "c++-module-compile" |
| 1143 | flag_group { |
| 1144 | flag: "-iquote" |
| 1145 | flag: "%{quote_include_paths}" |
| 1146 | iterate_over: "quote_include_paths" |
| 1147 | } |
| 1148 | flag_group { |
| 1149 | flag: "-I%{include_paths}" |
| 1150 | iterate_over: "include_paths" |
| 1151 | } |
| 1152 | flag_group { |
| 1153 | flag: "-I" |
| 1154 | flag: "%{system_include_paths}" |
| 1155 | iterate_over: "system_include_paths" |
| 1156 | } |
| 1157 | } |
| 1158 | } |
| 1159 | } |
| 1160 | toolchain { |
| 1161 | toolchain_identifier: "cortex-m4f-k22" |
| 1162 | host_system_name: "local" |
| 1163 | target_system_name: "cortex-m4f-k22" |
| 1164 | target_cpu: "cortex-m4f-k22" |
| 1165 | target_libc: "cortex-m4f-k22" |
| 1166 | compiler: "gcc" |
| 1167 | abi_version: "cortex-m4f-k22" |
| 1168 | abi_libc_version: "cortex-m4f-k22" |
| 1169 | tool_path { |
| 1170 | name: "ar" |
| 1171 | path: "gcc_arm_none_eabi/arm-none-eabi-ar" |
| 1172 | } |
| 1173 | tool_path { |
| 1174 | name: "compat-ld" |
| 1175 | path: "gcc_arm_none_eabi/arm-none-eabi-ld" |
| 1176 | } |
| 1177 | tool_path { |
| 1178 | name: "cpp" |
| 1179 | path: "gcc_arm_none_eabi/arm-none-eabi-cpp" |
| 1180 | } |
| 1181 | tool_path { |
| 1182 | name: "dwp" |
| 1183 | path: "gcc_arm_none_eabi/arm-none-eabi-dwp" |
| 1184 | } |
| 1185 | tool_path { |
| 1186 | name: "gcc" |
| 1187 | path: "gcc_arm_none_eabi/arm-none-eabi-gcc" |
| 1188 | } |
| 1189 | tool_path { |
| 1190 | name: "gcov" |
| 1191 | path: "gcc_arm_none_eabi/arm-none-eabi-gcov" |
| 1192 | } |
| 1193 | tool_path { |
| 1194 | name: "ld" |
| 1195 | path: "gcc_arm_none_eabi/arm-none-eabi-ld" |
| 1196 | } |
| 1197 | tool_path { |
| 1198 | name: "nm" |
| 1199 | path: "gcc_arm_none_eabi/arm-none-eabi-nm" |
| 1200 | } |
| 1201 | tool_path { |
| 1202 | name: "objcopy" |
| 1203 | path: "gcc_arm_none_eabi/arm-none-eabi-objcopy" |
| 1204 | } |
| 1205 | tool_path { |
| 1206 | name: "objdump" |
| 1207 | path: "gcc_arm_none_eabi/arm-none-eabi-objdump" |
| 1208 | } |
| 1209 | tool_path { |
| 1210 | name: "strip" |
| 1211 | path: "gcc_arm_none_eabi/arm-none-eabi-strip" |
| 1212 | } |
| 1213 | supports_gold_linker: false |
| 1214 | supports_thin_archives: false |
| 1215 | needsPic: false |
| 1216 | compiler_flag: "-D__STDC_FORMAT_MACROS" |
| 1217 | compiler_flag: "-D__STDC_CONSTANT_MACROS" |
| 1218 | compiler_flag: "-D__STDC_LIMIT_MACROS" |
| 1219 | compiler_flag: "-D__MK22FX512__" |
| 1220 | compiler_flag: "-DF_CPU=120000000" |
| 1221 | compiler_flag: "-Wl,--gc-sections" |
| 1222 | compiler_flag: "-D__have_long32" |
| 1223 | compiler_flag: "-fstack-protector" |
| 1224 | compiler_flag: "-mcpu=cortex-m4" |
| 1225 | compiler_flag: "-mfpu=fpv4-sp-d16" |
| 1226 | compiler_flag: "-mthumb" |
| 1227 | compiler_flag: "-mfloat-abi=hard" |
| 1228 | compiler_flag: "-fno-strict-aliasing" |
| 1229 | compiler_flag: "-fmessage-length=80" |
| 1230 | compiler_flag: "-fmax-errors=20" |
| 1231 | compiler_flag: "-Wall" |
| 1232 | compiler_flag: "-Wextra" |
| 1233 | compiler_flag: "-Wpointer-arith" |
| 1234 | compiler_flag: "-Wcast-qual" |
| 1235 | compiler_flag: "-Wwrite-strings" |
| 1236 | compiler_flag: "-Wtype-limits" |
| 1237 | compiler_flag: "-Wsign-compare" |
| 1238 | compiler_flag: "-Wformat=2" |
| 1239 | compiler_flag: "-Werror" |
| 1240 | compiler_flag: "-Wstrict-aliasing=2" |
| 1241 | compiler_flag: "-Wno-misleading-indentation" |
| 1242 | compiler_flag: "-Wno-int-in-bool-context" |
| 1243 | compiler_flag: "-Wdouble-promotion" |
| 1244 | compiler_flag: "-pipe" |
| 1245 | compiler_flag: "-g" |
| 1246 | compiler_flag: "-fno-common" |
| 1247 | compiler_flag: "-ffreestanding" |
| 1248 | compiler_flag: "-fbuiltin" |
| 1249 | linker_flag: "-no-canonical-prefixes" |
| 1250 | linker_flag: "-mcpu=cortex-m4" |
| 1251 | linker_flag: "-mfpu=fpv4-sp-d16" |
| 1252 | linker_flag: "-mthumb" |
| 1253 | linker_flag: "-mfloat-abi=hard" |
| 1254 | linker_flag: "-fno-strict-aliasing" |
| 1255 | linker_flag: "--specs=nano.specs" |
| 1256 | linker_flag: "-lgcc" |
| 1257 | linker_flag: "-lstdc++_nano" |
| 1258 | linker_flag: "-lm" |
| 1259 | linker_flag: "-lc_nano" |
Brian Silverman | d4dc126 | 2018-09-23 16:50:34 -0700 | [diff] [blame] | 1260 | linker_flag: "-Tmotors/core/kinetis_512_128.ld" |
| 1261 | linker_flag: "-Tmotors/core/kinetis_sections.ld" |
Brian Silverman | 6c8b88b | 2018-09-03 18:17:02 -0700 | [diff] [blame] | 1262 | objcopy_embed_flag: "-I" |
| 1263 | objcopy_embed_flag: "binary" |
| 1264 | compilation_mode_flags { |
| 1265 | mode: OPT |
| 1266 | compiler_flag: "-O2" |
| 1267 | compiler_flag: "-finline-functions" |
| 1268 | compiler_flag: "-ffast-math" |
| 1269 | compiler_flag: "-funroll-loops" |
| 1270 | compiler_flag: "-DNDEBUG" |
| 1271 | compiler_flag: "-ffunction-sections" |
| 1272 | linker_flag: "-Wl,--gc-sections" |
| 1273 | } |
| 1274 | linking_mode_flags { |
| 1275 | mode: FULLY_STATIC |
| 1276 | } |
| 1277 | cxx_builtin_include_directory: "/usr/lib/gcc/arm-none-eabi/4.8/include" |
| 1278 | cxx_builtin_include_directory: "/usr/lib/gcc/arm-none-eabi/4.8/include-fixed" |
| 1279 | cxx_builtin_include_directory: "/usr/lib/arm-none-eabi/include" |
| 1280 | cxx_builtin_include_directory: "/usr/include/newlib" |
| 1281 | builtin_sysroot: "" |
| 1282 | unfiltered_cxx_flag: "-no-canonical-prefixes" |
| 1283 | unfiltered_cxx_flag: "-Wno-builtin-macro-redefined" |
| 1284 | unfiltered_cxx_flag: "-D__DATE__=\"redacted\"" |
| 1285 | unfiltered_cxx_flag: "-D__TIMESTAMP__=\"redacted\"" |
| 1286 | unfiltered_cxx_flag: "-D__TIME__=\"redacted\"" |
| 1287 | supports_normalizing_ar: false |
| 1288 | supports_start_end_lib: false |
| 1289 | supports_interface_shared_objects: false |
| 1290 | supports_incremental_linker: false |
| 1291 | supports_fission: false |
| 1292 | feature { |
| 1293 | name: "dbg" |
| 1294 | flag_set { |
| 1295 | action: "preprocess-assemble" |
| 1296 | action: "c-compile" |
| 1297 | action: "c++-compile" |
| 1298 | action: "c++-header-parsing" |
| 1299 | action: "c++-header-preprocessing" |
| 1300 | action: "c++-module-compile" |
| 1301 | flag_group { |
| 1302 | flag: "-fno-omit-frame-pointer" |
| 1303 | } |
| 1304 | } |
| 1305 | implies: "all_modes" |
| 1306 | } |
| 1307 | feature { |
| 1308 | name: "opt" |
| 1309 | implies: "all_modes" |
| 1310 | } |
| 1311 | feature { |
| 1312 | name: "fastbuild" |
| 1313 | implies: "all_modes" |
| 1314 | } |
| 1315 | feature { |
| 1316 | name: "all_modes" |
| 1317 | flag_set { |
| 1318 | action: "preprocess-assemble" |
| 1319 | action: "assemble" |
| 1320 | action: "c-compile" |
| 1321 | flag_group { |
| 1322 | flag: "--std=gnu99" |
| 1323 | } |
| 1324 | } |
| 1325 | flag_set { |
| 1326 | action: "c++-compile" |
| 1327 | action: "c++-header-parsing" |
| 1328 | action: "c++-header-preprocessing" |
| 1329 | action: "c++-module-compile" |
| 1330 | flag_group { |
James Kuszmaul | 3ae4226 | 2019-11-08 12:33:41 -0800 | [diff] [blame] | 1331 | flag: "--std=gnu++1z" |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1332 | flag: "-fno-exceptions" |
| 1333 | flag: "-fno-rtti" |
| 1334 | } |
| 1335 | } |
| 1336 | } |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1337 | feature { |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1338 | name: "include_paths" |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1339 | flag_set { |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1340 | action: "preprocess-assemble" |
| 1341 | action: "c-compile" |
| 1342 | action: "c++-compile" |
| 1343 | action: "c++-header-parsing" |
| 1344 | action: "c++-header-preprocessing" |
| 1345 | action: "c++-module-compile" |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1346 | flag_group { |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1347 | flag: "-iquote" |
| 1348 | flag: "%{quote_include_paths}" |
| 1349 | iterate_over: "quote_include_paths" |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1350 | } |
| 1351 | flag_group { |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1352 | flag: "-I%{include_paths}" |
| 1353 | iterate_over: "include_paths" |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1354 | } |
| 1355 | flag_group { |
Brian Silverman | 7b8899e | 2018-06-30 19:19:24 -0700 | [diff] [blame] | 1356 | flag: "-I" |
| 1357 | flag: "%{system_include_paths}" |
| 1358 | iterate_over: "system_include_paths" |
Brian Silverman | 8b63869 | 2017-06-26 23:10:26 -0700 | [diff] [blame] | 1359 | } |
| 1360 | } |
| 1361 | } |
| 1362 | } |