diff options
author | mtklein <mtklein@chromium.org> | 2016-08-16 18:28:43 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-16 18:28:43 -0700 |
commit | 422310ddbe4db616200a949adcac2c560685030c (patch) | |
tree | 2ae9dc3d385d2132779c25b9a0c934209fc604b6 /gn/BUILDCONFIG.gn | |
parent | 6480619f9ff4676a97edae41b2ca23eadeddcfbf (diff) |
GN: make current_cpu work
Then we can use it to remind ourselves that SSE and AVX are x86-only.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2247413003
Review-Url: https://codereview.chromium.org/2247413003
Diffstat (limited to 'gn/BUILDCONFIG.gn')
-rw-r--r-- | gn/BUILDCONFIG.gn | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gn/BUILDCONFIG.gn b/gn/BUILDCONFIG.gn index e2719c196e..2daba29481 100644 --- a/gn/BUILDCONFIG.gn +++ b/gn/BUILDCONFIG.gn @@ -18,6 +18,13 @@ if (current_os == "") { current_os = target_os } +if (target_cpu == "") { + target_cpu = host_cpu +} +if (current_cpu == "") { + current_cpu = target_cpu +} + is_android = current_os == "android" is_fuchsia = current_os == "fuchsia" is_ios = current_os == "ios" |