[Mlir-commits] [mlir] bcd6528 - mlir/ods-gen: use bash from env in shell script

Ramkumar Ramachandra llvmlistbot at llvm.org
Wed Dec 14 03:28:47 PST 2022


Author: Ramkumar Ramachandra
Date: 2022-12-14T12:28:07+01:00
New Revision: bcd6528554281d249ec66e0b9f94b7a1a9df7868

URL: https://github.com/llvm/llvm-project/commit/bcd6528554281d249ec66e0b9f94b7a1a9df7868
DIFF: https://github.com/llvm/llvm-project/commit/bcd6528554281d249ec66e0b9f94b7a1a9df7868.diff

LOG: mlir/ods-gen: use bash from env in shell script

On macOS, hardcoding the path of bash leads to a failure in executing
update_core_linalg_named_ops.sh, due to an old version of bash being
present in that location.

Signed-off-by: Ramkumar Ramachandra <r at artagnon.com>

Differential Revision: https://reviews.llvm.org/D139942

Added: 
    

Modified: 
    mlir/tools/mlir-linalg-ods-gen/update_core_linalg_named_ops.sh.in

Removed: 
    


################################################################################
diff  --git a/mlir/tools/mlir-linalg-ods-gen/update_core_linalg_named_ops.sh.in b/mlir/tools/mlir-linalg-ods-gen/update_core_linalg_named_ops.sh.in
index b0fbd644e8f38..da4db3971987d 100755
--- a/mlir/tools/mlir-linalg-ods-gen/update_core_linalg_named_ops.sh.in
+++ b/mlir/tools/mlir-linalg-ods-gen/update_core_linalg_named_ops.sh.in
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 # See https://llvm.org/LICENSE.txt for license information.
 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception


        


More information about the Mlir-commits mailing list