diff options
author | Stephen Hines <srhines@google.com> | 2016-01-30 17:44:32 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-01-30 17:44:32 +0000 |
commit | 672dd1d7021ce09a3045d1316d80ac2f42edc72a (patch) | |
tree | 7c02a3e929376da181451576ee7550b2e7a92863 /rsScriptC.cpp | |
parent | 886e5a2f3670b31bcf02526343d364b86b3a2305 (diff) | |
parent | 15c1d06c654c246b8e8047f64f781add32483576 (diff) | |
download | rs-672dd1d7021ce09a3045d1316d80ac2f42edc72a.tar.gz |
Merge "Derive the bcc optimization level from the input bitcode."
Diffstat (limited to 'rsScriptC.cpp')
-rw-r--r-- | rsScriptC.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rsScriptC.cpp b/rsScriptC.cpp index f6430934..d2d5b1fd 100644 --- a/rsScriptC.cpp +++ b/rsScriptC.cpp @@ -380,6 +380,11 @@ bool ScriptC::runCompiler(Context *rsc, } } + + // Set the optimization level of bcc to be the same as the + // optimization level used to compile the bitcode. + rsc->setOptLevel(bcWrapper.getOptimizationLevel()); + #endif if (!cacheDir) { // MUST BE FIXED BEFORE ANYTHING USING C++ API IS RELEASED |