LGTM, thanks, will push it later.

> -----Original Message-----
> From: Beignet [mailto:[email protected]] On Behalf Of
> Ismo Puustinen
> Sent: Tuesday, May 23, 2017 16:27
> To: [email protected]
> Cc: Puustinen, Ismo <[email protected]>
> Subject: [Beignet] [PATCH] build: fix cmake code generation dependencies.
> 
> There is a race condition between building .bc and header files and
> generating code from .cl targets. Fix the race by adding the dependency to
> generated files.
> 
> Signed-off-by: Ismo Puustinen <[email protected]>
> ---
>  src/CMakeLists.txt | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 77a1c87..f87a637
> 100644
> --- a/src/CMakeLists.txt
> +++ b/src/CMakeLists.txt
> @@ -18,13 +18,13 @@ foreach (KF ${KERNEL_FILES})
>        OUTPUT ${output_file}
>        COMMAND rm -rf ${output_file}
>        COMMAND ${GBE_BIN_GENERATER} -s -o${output_file} -t${GEN_PCI_ID}
> ${input_file}
> -      DEPENDS ${input_file} ${GBE_BIN_FILE})
> +      DEPENDS ${input_file} ${GBE_BIN_FILE} beignet_bitcode)
>    else(GEN_PCI_ID)
>      add_custom_command(
>        OUTPUT ${output_file}
>        COMMAND rm -rf ${output_file}
>        COMMAND ${GBE_BIN_GENERATER} -s -o${output_file} ${input_file}
> -      DEPENDS ${input_file} ${GBE_BIN_FILE})
> +      DEPENDS ${input_file} ${GBE_BIN_FILE} beignet_bitcode)
>    endif(GEN_PCI_ID)
>  endforeach (KF)
>  endmacro (MakeKernelBinStr)
> --
> 2.9.4
> 
> _______________________________________________
> Beignet mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/beignet
_______________________________________________
Beignet mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to