arrow: don't use when as a keyword argument to filter_file() (#35065)

Co-authored-by: thomas-bouvier <thomas-bouvier@users.noreply.github.com>
This commit is contained in:
Thomas Bouvier 2023-01-22 09:05:37 +01:00 committed by GitHub
parent ce8727cece
commit b7a68938c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,18 +101,18 @@ def patch(self):
r"(include_directories\()SYSTEM ", r"\1", "cpp/cmake_modules/ThirdpartyToolchain.cmake"
)
if self.spec.satisfies("@:2.0.0"):
filter_file(
r'set\(ARROW_LLVM_VERSIONS "10" "9" "8" "7"\)',
'set(ARROW_LLVM_VERSIONS "11" "10" "9" "8" "7")',
"cpp/CMakeLists.txt",
when="@:2.0.0",
)
filter_file(
r"#include <llvm/Support/DynamicLibrary\.h>",
r"#include <llvm/Support/DynamicLibrary.h>" + "\n" + r"#include <llvm/Support/Host.h>",
r"#include <llvm/Support/DynamicLibrary.h>"
+ "\n"
+ r"#include <llvm/Support/Host.h>",
"cpp/src/gandiva/engine.cc",
when="@2.0.0",
)
def cmake_args(self):