Browse Source

Create output directories for perlasm.

Flattening the build seems to have changed the order of actions when
using Make and output directories for perlasm are no longer created
before Perl is run. Additionally, if the output directory doesn't exist,
the perlasm scripts seem to output to stdout instead.

Change-Id: I59b801f7347951a3b9cef2ff084b28a00b2d5a3c
Reviewed-on: https://boringssl-review.googlesource.com/31645
Reviewed-by: Adam Langley <agl@google.com>
kris/onging/CECPQ3_patch15
Adam Langley 6 years ago
committed by Adam Langley
parent
commit
e84c375303
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      crypto/CMakeLists.txt

+ 6
- 0
crypto/CMakeLists.txt View File

@@ -62,8 +62,14 @@ if(NOT OPENSSL_NO_ASM)
endif() endif()


function(perlasm dest src) function(perlasm dest src)
get_filename_component(dir ${dest} DIRECTORY)
if ("${dir}" STREQUAL "")
set(dir ".")
endif()

add_custom_command( add_custom_command(
OUTPUT ${dest} OUTPUT ${dest}
COMMAND ${CMAKE_COMMAND} -E make_directory ${dir}
COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${src} ${PERLASM_STYLE} ${PERLASM_FLAGS} ${ARGN} ${dest} COMMAND ${PERL_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${src} ${PERLASM_STYLE} ${PERLASM_FLAGS} ${ARGN} ${dest}
DEPENDS DEPENDS
${src} ${src}


Loading…
Cancel
Save