diff options
Diffstat (limited to 'dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch')
-rw-r--r-- | dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch b/dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch new file mode 100644 index 000000000000..6645efd72fb1 --- /dev/null +++ b/dev-util/Tensile/files/Tensile-4.3.0-use-ninja.patch @@ -0,0 +1,21 @@ +Index: Tensile-rocm-4.3.0/Tensile/ClientExecutable.py +=================================================================== +--- Tensile-rocm-4.3.0.orig/Tensile/ClientExecutable.py ++++ Tensile-rocm-4.3.0/Tensile/ClientExecutable.py +@@ -36,6 +36,7 @@ class CMakeEnvironment: + + args = ['cmake'] + args += itertools.chain.from_iterable([ ['-D', '{}={}'.format(key, value)] for key,value in self.options.items()]) ++ args += itertools.chain.from_iterable([ ['-G', 'Ninja'], [ '-D', 'CMAKE_EXPORT_COMPILE_COMMANDS=ON' ] ]) + args += [self.sourceDir] + + Common.print2(' '.join(args)) +@@ -43,7 +44,7 @@ class CMakeEnvironment: + subprocess.check_call(args, cwd=Common.ensurePath(self.buildDir)) + + def build(self): +- args = ['make', '-j'] ++ args = ['ninja'] + Common.print2(' '.join(args)) + with Common.ClientExecutionLock(): + subprocess.check_call(args, cwd=self.buildDir) |