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