Module: Mesa
Branch: main
Commit: 21b190bf44e9aef26b2e1a8107d09452532907c0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=21b190bf44e9aef26b2e1a8107d09452532907c0

Author: Michel Dänzer <[email protected]>
Date:   Wed Apr 12 11:26:07 2023 +0200

ci: Use set -e in frontend compiler wrapper scripts.

I doubt the shebang line in the backend script has any effect now,
since the frontend scripts just source it directly.

v2:
* Use "set -e" instead of adding -e to shebang (Eric Engestrom)

v3:
* Apply to the clang wrapper scripts as well (Eric Engestrom)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22438>

---

 .gitlab-ci/build/compiler-wrapper-clang++.sh | 3 +++
 .gitlab-ci/build/compiler-wrapper-clang.sh   | 3 +++
 .gitlab-ci/build/compiler-wrapper-g++.sh     | 3 +++
 .gitlab-ci/build/compiler-wrapper-gcc.sh     | 3 +++
 4 files changed, 12 insertions(+)

diff --git a/.gitlab-ci/build/compiler-wrapper-clang++.sh 
b/.gitlab-ci/build/compiler-wrapper-clang++.sh
index 69c28bfed0c..cf3cd3fe676 100755
--- a/.gitlab-ci/build/compiler-wrapper-clang++.sh
+++ b/.gitlab-ci/build/compiler-wrapper-clang++.sh
@@ -1,3 +1,6 @@
 #!/bin/sh
+
+set -e
+
 _COMPILER=clang++
 . compiler-wrapper.sh
diff --git a/.gitlab-ci/build/compiler-wrapper-clang.sh 
b/.gitlab-ci/build/compiler-wrapper-clang.sh
index a4e119be431..99cf0cb7e60 100755
--- a/.gitlab-ci/build/compiler-wrapper-clang.sh
+++ b/.gitlab-ci/build/compiler-wrapper-clang.sh
@@ -1,3 +1,6 @@
 #!/bin/sh
+
+set -e
+
 _COMPILER=clang
 . compiler-wrapper.sh
diff --git a/.gitlab-ci/build/compiler-wrapper-g++.sh 
b/.gitlab-ci/build/compiler-wrapper-g++.sh
index a0bfadb45a2..d0451625d47 100755
--- a/.gitlab-ci/build/compiler-wrapper-g++.sh
+++ b/.gitlab-ci/build/compiler-wrapper-g++.sh
@@ -1,3 +1,6 @@
 #!/bin/sh
+
+set -e
+
 _COMPILER=g++
 . compiler-wrapper.sh
diff --git a/.gitlab-ci/build/compiler-wrapper-gcc.sh 
b/.gitlab-ci/build/compiler-wrapper-gcc.sh
index e9c0d1587c3..ef0f8b85cf3 100755
--- a/.gitlab-ci/build/compiler-wrapper-gcc.sh
+++ b/.gitlab-ci/build/compiler-wrapper-gcc.sh
@@ -1,3 +1,6 @@
 #!/bin/sh
+
+set -e
+
 _COMPILER=gcc
 . compiler-wrapper.sh

Reply via email to