subst mtune=cortex-a15 to krait2 for msm-% clang device...
    and march=cortex-a9 for a15 otherwise

Change-Id: I6206057e0796ba4db46be4c0bf1a04ea3ade6ad0
build: improve support for a prebuilt clang
- this toolchain replaces the clang that is builded inline and has additional optimization for krait devices
- it gives a noticable performance boost
- more information is found in the pfd at prebuilts/clang/linux-x86/host/msm-3.4
- previous implentation is reverted with this commit

Revert "First, use original cortex-a15 substitution, if no target_clang_version, else,"

This reverts commit 0e524e1a703d79cb1422d6a8d1ae7a774d65d08d.

Revert "build: add  -funsafe-loop-optimizations to unknows clang flags"

This reverts commit 844b052ca0476d56e431e5e6e44c36261aba3327.

Revert "build: restore order to the universe... or at least non-clang renderscript includes"

This reverts commit 4fe36b66987a3ab83cc49a92170d686218422769.

Revert "[DO NOT MERGE]build: fix renderscript header inclusion"

This reverts commit 7de5bc2ea8b3b944d88ea07987cb8a2d75c451c6.

Revert "Prebuilt clang: add a TARGET_ENABLE_PREBUILT_CLANG flag, which sets TARGET_CLANG_VERSION to msm-3.4"

This reverts commit f5ae25bc4d1fd15811d35b4a8995d4aae999a33c.

Revert "build: add support for a prebuilt clang"

This reverts commit ce18eb5b3383af00f090074b1c94e4e6bd27f63c.

build: add support for a prebuilt clang

- this toolchain replaces the clang that is builded inline and has additional optimization for krait devices
- it gives a noticable performance boost
- more information is found in the pfd at prebuilts/clang/linux-x86/host/msm-3.4

build: add support for a prebuilt clang

- set TARGET_CLANG_VERSION to your desired clang version to use it

ps2: RETAIN SUPPORT FOR STOCK CLANG... ASDLKJSHADLKSJAHDLKDHJA
ps3: derp
ps4: set stock clang
ps5: fixup the header inclusion
ps6: add guard for default clang version
ps7: cortex-15 if supported by both clang versions, and fixup header inclusion
ps8: fix derp
ps9: FIX SHIT UP FOR REAL?
ps10: copy/paste derp
ps11: ifeq--->ifneq
ps12: don't enable by default
ps14: revise conditionalization if CLANG_EXTRA_INCLUDES and restore mcpu substitution for global stock clang
Change-Id: I07c1725bec1600d7082ff3b57d0b82820eb408a1
Signed-off-by: bart452 <bart4524@gmail.com>

Conflicts:
	core/clear_vars.mk
	core/dumpvar.mk

build: fix renderscript header inclusion

- to build frameworks/rs with the prebuilt clang

credits to @xboxfanj for the idea

Change-Id: Ifb79d60840bdd8e8dbf5a50cf73b4ae4082e4c3a
Signed-off-by: bart452 <bart4524@gmail.com>

build: add  -funsafe-loop-optimizations to unknows clang flags

- not supported by clang

Change-Id: I280d57a94b2d45b66ef6efaa42d28d822d9b2d2e

build: update configuration for msm clang

Change-Id: Ib2eb53863b39492fbcfec98f1dbe258287224cfc
Signed-off-by: bart452 <bart4524@gmail.com>

build: drop LOCAL_STOCK_CLANG

- not needed and should not be needed, better to fix it the right way

Change-Id: Ifbd4852661f72d2be1f9640811f5271e65fa639d
Signed-off-by: bart452 <bart4524@gmail.com>
Clang: krait devices not setting msm-3.4/prebuilt shouldn't use msm-3.4 flags

Change-Id: Id8c79a5b8f72eec92a04afd5b557299bd5fb6249
Fixed mounting /system when 'override_prop' is enabled.

Change-Id: I59f035498c2a2d65869cb7f7e6ea9e311b9757be
[WIP]: New changes needed for msm-3.5 clang

Change-Id: If41682c7265645056be757e58eb14b8707ce7438
echo TARGET_GLOBAL_CLANG_FLAGS && TARGET_GLOBAL_CFLAGS from dumpvar.mk