aboutsummaryrefslogtreecommitdiff
path: root/pw_sys_io
diff options
context:
space:
mode:
authorAlexei Frolov <frolv@google.com>2020-06-10 10:46:04 -0700
committerWyatt Hepler <hepler@google.com>2020-06-16 09:50:59 -0700
commit4c0428a0d8f3909beeb3d6f154c2cda72395d31b (patch)
treeedc45d90d4aa0e09736275755fca35ab6d63103e /pw_sys_io
parentfb3d3fba791b5b200293d23f08b778ecae34e02f (diff)
downloadpigweed-4c0428a0d8f3909beeb3d6f154c2cda72395d31b.tar.gz
Define Linux clang target as toolchain
This change configures the Linux clang -Og target as a toolchain with args. To support this, all Pigweed variables from pw_vars_default are made into build args, defined within their respective modules. The Linux clang target/toolchain is the only one that currently works. Pigweed's other targets will be ported in later changes. Change-Id: I051e29fde7577e41a3184c37031a4e04936404e1
Diffstat (limited to 'pw_sys_io')
-rw-r--r--pw_sys_io/BUILD.gn8
1 files changed, 6 insertions, 2 deletions
diff --git a/pw_sys_io/BUILD.gn b/pw_sys_io/BUILD.gn
index aeb8eb534..ce2b30f36 100644
--- a/pw_sys_io/BUILD.gn
+++ b/pw_sys_io/BUILD.gn
@@ -15,16 +15,20 @@
# gn-format disable
import("//build_overrides/pigweed.gni")
-import("$dir_pigweed/legacy_target.gni")
import("$dir_pw_build/facade.gni")
import("$dir_pw_build/target_types.gni")
import("$dir_pw_docgen/docs.gni")
+declare_args() {
+ # Backend for the pw_sys_io module.
+ pw_sys_io_BACKEND = ""
+}
+
config("default_config") {
include_dirs = [ "public" ]
}
pw_facade("pw_sys_io") {
- backend = dir_pw_sys_io_backend
+ backend = pw_sys_io_BACKEND
public_configs = [ ":default_config" ]
public_deps = [
"$dir_pw_span",