OSDN Git Service

Avoid accidentally using the host's native 'as' command.
authorAlistair Strachan <alistair.strachan@imgtec.com>
Thu, 5 May 2016 23:29:08 +0000 (16:29 -0700)
committerSteve Kondik <steve@cyngn.com>
Sun, 4 Sep 2016 04:47:36 +0000 (21:47 -0700)
commit6957311c2461fb96e6a673f8f2dfcd7fd6ed41da
tree534e475930d1c7b747b834e25a9d34268b335e93
parentab48d3aa5af334b556dc547d004bc6e7db3fc8e3
Avoid accidentally using the host's native 'as' command.

When invoking clang for the host to assemble .S files, the -B flag
would not be provided, which allowed the host prebuilt clang to
use an 'as' from the native environment. Most of the time this
"just works", but some newer 'as' versions cause problems with
the older prebuilt toolchain, for example by generating
unsupported relocation types.

To avoid this problem, simply use the -B flag to tell clang to
invoke the assembler from the correct prebuilt gcc prefix.

Change-Id: I18ea4f37ae637b652cfd7321c41929f8be075342
Signed-off-by: Alistair Strachan <alistair.strachan@imgtec.com>
core/clang/HOST_x86_common.mk