summaryrefslogtreecommitdiff
path: root/build-aux/lint-bin
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2025-02-26 16:13:02 -0700
committerLuke T. Shumaker <lukeshu@lukeshu.com>2025-02-26 16:13:02 -0700
commitb208a19331ee52445b48f0e3418437832dadd843 (patch)
treed842d97fe006bc4b4caf08e33ac64cd441b7b8aa /build-aux/lint-bin
parent0c365772122d8fe429eb2029b79b5b2f450fd27c (diff)
I guess CMake uses .o now instead of .obj?
Diffstat (limited to 'build-aux/lint-bin')
-rwxr-xr-xbuild-aux/lint-bin5
1 files changed, 3 insertions, 2 deletions
diff --git a/build-aux/lint-bin b/build-aux/lint-bin
index 2fe8e4b..85f9015 100755
--- a/build-aux/lint-bin
+++ b/build-aux/lint-bin
@@ -5,6 +5,7 @@
# SPDX-License-Identifier: AGPL-3.0-or-later
set -euE -o pipefail
+shopt -s extglob
# Output is a series of lines in the format "symbol location size
# source". Whitespace may seem silly.
@@ -38,10 +39,10 @@ lint_globals() {
# resolve `..` components
source="$(realpath --canonicalize-missing --no-symlinks -- "$source")"
;;
- CMakeFiles/*.dir/*.obj)
+ CMakeFiles/*.dir/*.@(obj|o))
# CMakeFiles/sbc_harnes_objs.dir/...
source="${source#CMakeFiles/*.dir/}"
- source="${source%.obj}"
+ source="${source%.@(obj|o)}"
source="${source//__/..}"
source="$(realpath --canonicalize-missing --no-symlinks --relative-to="$topdir" -- "$source")"
;;