all: make targets configurable with a JSON file

This is intentionally similar to the target specifications in Rust:
https://doc.rust-lang.org/nightly/nightly-rustc/rustc_target/spec/struct.TargetOptions.html
This commit is contained in:
Ayke van Laethem
2018-09-12 18:13:04 +02:00
parent 20c2552f8a
commit 9bec479041
4 changed files with 56 additions and 15 deletions
+4
View File
@@ -0,0 +1,4 @@
{
"llvm-target": "avr-atmel-none",
"build-tags": ["avr", "avr8", "atmega", "atmega328p", "js", "wasm"]
}
+4
View File
@@ -0,0 +1,4 @@
{
"llvm-target": "armv7m-none-eabi",
"build-tags": ["nrf", "nrf52", "nrf52832", "js", "wasm"]
}