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:
parent
ce8727cece
commit
b7a68938c2
1 changed files with 13 additions and 13 deletions
|
@ -101,19 +101,19 @@ def patch(self):
|
|||
r"(include_directories\()SYSTEM ", r"\1", "cpp/cmake_modules/ThirdpartyToolchain.cmake"
|
||||
)
|
||||
|
||||
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>",
|
||||
"cpp/src/gandiva/engine.cc",
|
||||
when="@2.0.0",
|
||||
)
|
||||
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",
|
||||
)
|
||||
filter_file(
|
||||
r"#include <llvm/Support/DynamicLibrary\.h>",
|
||||
r"#include <llvm/Support/DynamicLibrary.h>"
|
||||
+ "\n"
|
||||
+ r"#include <llvm/Support/Host.h>",
|
||||
"cpp/src/gandiva/engine.cc",
|
||||
)
|
||||
|
||||
def cmake_args(self):
|
||||
args = ["-DARROW_DEPENDENCY_SOURCE=SYSTEM", "-DARROW_NO_DEPRECATED_API=ON"]
|
||||
|
|
Loading…
Reference in a new issue