aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong Chen <yong.a.chen@intel.com>2015-03-25 18:28:38 +0800
committerYong Chen <yong.a.chen@intel.com>2015-03-27 19:19:48 +0800
commit32e8068b311574a3085e7bc662daa18c1f2f285e (patch)
tree973fb4928cc7dd4d05a6ae6ed86440f097f44b5f
parentff7b1d467648aea6e771f78abcd7c5082827944f (diff)
downloadandroid_frameworks_compile_libbcc-32e8068b311574a3085e7bc662daa18c1f2f285e.tar.gz
android_frameworks_compile_libbcc-32e8068b311574a3085e7bc662daa18c1f2f285e.tar.bz2
android_frameworks_compile_libbcc-32e8068b311574a3085e7bc662daa18c1f2f285e.zip
Explicitly set x86 SSE feature for bcc_compat
Change-Id: I1a6c8d3de59bdbd61d7824cda2bb8b8651f083cb Signed-off-by: Yong Chen <yong.a.chen@intel.com>
-rw-r--r--tools/bcc_compat/Main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/bcc_compat/Main.cpp b/tools/bcc_compat/Main.cpp
index e3445a0..7766f51 100644
--- a/tools/bcc_compat/Main.cpp
+++ b/tools/bcc_compat/Main.cpp
@@ -168,6 +168,14 @@ bool ConfigCompiler(RSCompilerDriver &pCompilerDriver) {
config->setFeatureString(fv);
}
+ // Explicitly set X86 feature vector
+ if ((config->getTriple().find("i686") != std::string::npos) ||
+ (config->getTriple().find("x86_64") != std::string::npos)) {
+ std::vector<std::string> fv;
+ fv.push_back("+sse3");
+ config->setFeatureString(fv);
+ }
+
// Compatibility mode on x86 requires atom code generation.
if (config->getTriple().find("i686") != std::string::npos) {
config->setCPU("atom");