gallivm: allow additional llc options
authorBen Crocker <bcrocker@redhat.com>
Thu, 28 Sep 2017 18:09:11 +0000 (14:09 -0400)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 5 Oct 2017 00:06:46 +0000 (02:06 +0200)
commit5c75f0c8bb876c1f4c85cda5ed10a4d632d24f56
tree78f02ee195f746e6767734518a5d984501d4c628
parent3a9feb4db8ad1e87a70c761987798b7575d522aa
gallivm: allow additional llc options

In init_native_targets, allow the passing of additional options to
the LLC compiler via new GALLIVM_LLC_OPTIONS environmental control.
This option is available only #ifdef DEBUG, initially.
At top, add #include <llvm-c/Support.h> for LLVMParseCommandLineOptions()
declaration.

v2: Fix compile error with old llvm versions (sroland)

Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Ben Crocker <bcrocker@redhat.com>
Acked-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp