Commit 573b8f96 authored by lixia zhang's avatar lixia zhang Committed by Commit Bot

libyuv:Add MultiMedia Instruction(MMI) build flags for GYP/GN builds

A preparation patch for adding MMI optimizations in libYUV project.

BUG=libyuv:804

Review-Url: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/1122064
Change-Id: I8840920f628095784756b5b3791bae47197e0a5a
Reviewed-on: https://chromium-review.googlesource.com/1137811Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576496}
parent e369ffde
...@@ -8,6 +8,11 @@ import("//build/config/v8_target_cpu.gni") ...@@ -8,6 +8,11 @@ import("//build/config/v8_target_cpu.gni")
# MIPS code is being compiled. But they can also be relevant in the # MIPS code is being compiled. But they can also be relevant in the
# other contexts when the code will change its behavior based on the # other contexts when the code will change its behavior based on the
# cpu it wants to generate code for. # cpu it wants to generate code for.
declare_args() {
# MIPS MultiMedia Instruction compilation flag.
mips_use_mmi = false
}
if (current_cpu == "mipsel" || v8_current_cpu == "mipsel" || if (current_cpu == "mipsel" || v8_current_cpu == "mipsel" ||
current_cpu == "mips" || v8_current_cpu == "mips") { current_cpu == "mips" || v8_current_cpu == "mips") {
declare_args() { declare_args() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment