summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorBilyan Borisov <bilyan.borisov@linaro.org>2016-04-04 16:27:32 +0100
committerBilyan Borisov <bilyan.borisov@linaro.org>2016-04-22 13:33:30 +0100
commitbb661c0f0cb72d4bbfc2e251f6ded6949a713292 (patch)
tree4fe7e66f3385b1955934d3ec6f02e00bde6e13b8 /compiler/optimizing/graph_visualizer.cc
parentf7cda8088ec57ab1422f85f08df78e217a9f7094 (diff)
Refactor use of __ANDROID__ macro
We use the __ANDROID__ macro, which is provided by the toolchain, in numerous places. This patch refactors the usage of this by defining a new macro, ART_TARGET_ANDROID, that is being passed during build to ART_TARGET_CFLAGS in Android.common_build.mk on the same line as ART_TARGET. The codebase currently assumes that the existence of the __ANDROID__ macro implies that we are compiling art for an android target device. This is because, currently, target builds are compiled with target toolchains that provide the macro, while host toolchains do not. With this change this assumption is still preserved. However, in a future patch we will add the ability to compile art for a linux target, and in that case the ART_TARGET_ANDROID macro won't be passed anymore. Change-Id: I1f3a811aa735c87087d812da27fc6b08f01bad51
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions