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