<div dir="ltr">Thanks, pushed.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 30, 2014 at 3:02 AM, <span dir="ltr"><<a href="mailto:dtyx265@gmail.com" target="_blank">dtyx265@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User David T Yuen <<a href="mailto:dtyx265@gmail.com">dtyx265@gmail.com</a>><br>
# Date 1419888680 28800<br>
# Node ID 143f81ed72f166dee5df756deb0e1de5c83f5949<br>
# Parent 38d2d0878acd2029e76dfa76c96c3f7eb1818e71<br>
Added cmake support to pass along build flags to yasm.<br>
<br>
This is particularly helpful when debugging.<br>
<br>
diff -r 38d2d0878acd -r 143f81ed72f1 source/cmake/CMakeASM_YASMInformation.cmake<br>
--- a/source/cmake/CMakeASM_YASMInformation.cmake Thu Dec 25 13:15:56 2014 +0900<br>
+++ b/source/cmake/CMakeASM_YASMInformation.cmake Mon Dec 29 13:31:20 2014 -0800<br>
@@ -35,6 +35,19 @@<br>
else()<br>
list(APPEND ASM_FLAGS -DHIGH_BIT_DEPTH=0 -DBIT_DEPTH=8)<br>
endif()<br>
+<br>
+list(APPEND ASM_FLAGS "${CMAKE_ASM_YASM_FLAGS}")<br>
+<br>
+if(CMAKE_BUILD_TYPE MATCHES Release)<br>
+ list(APPEND ASM_FLAGS "${CMAKE_ASM_YASM_FLAGS_RELEASE}")<br>
+elseif(CMAKE_BUILD_TYPE MATCHES Debug)<br>
+ list(APPEND ASM_FLAGS "${CMAKE_ASM_YASM_FLAGS_DEBUG}")<br>
+elseif(CMAKE_BUILD_TYPE MATCHES MinSizeRel)<br>
+ list(APPEND ASM_FLAGS "${CMAKE_ASM_YASM_FLAGS_MINSIZEREL}")<br>
+elseif(CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)<br>
+ list(APPEND ASM_FLAGS "${CMAKE_ASM_YASM_FLAGS_RELWITHDEBINFO}")<br>
+endif()<br>
+<br>
set(YASM_FLAGS ${ARGS} ${ASM_FLAGS} PARENT_SCOPE)<br>
string(REPLACE ";" " " CMAKE_ASM_YASM_COMPILER_ARG1 "${ARGS}")<br>
<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br></div>