Commit f38fccee authored by Johann's avatar Johann Committed by Johann Koenig
Browse files

Partially revert "nasm defaults to -Ox"

The -Ox check in still useful to avoid the version of nasm distributed
with Apple Xcode.

This reverts commit 29b0c186.

Change-Id: I9237791802267da708c3be8e5a83ca8d71e74afc
parent cec7ba10
No related merge requests found
Showing with 7 additions and 1 deletion
+7 -1
......@@ -200,11 +200,17 @@ function (add_gas_asm_library lib_name asm_sources dependent_target)
endfunction ()
# Terminates generation if nasm found in PATH does not meet requirements.
# Currently checks only for presence of required object formats.
# Currently checks only for presence of required object formats and support for
# the -Ox argument (multipass optimization).
function (test_nasm)
execute_process(COMMAND ${AS_EXECUTABLE} -hf
OUTPUT_VARIABLE nasm_helptext)
if (NOT "${nasm_helptext}" MATCHES "-Ox")
message(FATAL_ERROR
"Unsupported nasm: multipass optimization not supported.")
endif ()
if ("${AOM_TARGET_CPU}" STREQUAL "x86")
if ("${AOM_TARGET_SYSTEM}" STREQUAL "Darwin")
if (NOT "${nasm_helptext}" MATCHES "macho32")
......
Supports Markdown
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