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