aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2015-04-24 16:00:19 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-04-24 16:00:19 +0000
commit6a514e370eef2600e63684dd2d97b65208ccb259 (patch)
treefc45b8f6ebe5f48d34599f9fd0a02a2e6e6743ed
parent51cd0298effe402264c07bb4c5f8c09a5baa157e (diff)
parent8b3963d58c7748ea7df870f31a80c88336bdb1df (diff)
downloadandroid_frameworks_compile_libbcc-6a514e370eef2600e63684dd2d97b65208ccb259.tar.gz
android_frameworks_compile_libbcc-6a514e370eef2600e63684dd2d97b65208ccb259.tar.bz2
android_frameworks_compile_libbcc-6a514e370eef2600e63684dd2d97b65208ccb259.zip
am 8b3963d5: Merge "Explicitly set x86 SSE feature for bcc_compat"
* commit '8b3963d58c7748ea7df870f31a80c88336bdb1df': Explicitly set x86 SSE feature for bcc_compat
-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");