@@ -23,4 +23,9 @@ repos:
|
|||||||
description: disallow checking in SHOW_MEMORY=1
|
description: disallow checking in SHOW_MEMORY=1
|
||||||
entry: '^#define SHOW_MEMORY 1$'
|
entry: '^#define SHOW_MEMORY 1$'
|
||||||
language: pygrep
|
language: pygrep
|
||||||
types: [c++]
|
types: [c++]
|
||||||
|
- repo: https://github.com/koalaman/shellcheck-precommit
|
||||||
|
rev: 2491238703a5d3415bb2b7ff11388bf775372f29 # frozen: v0.10.0
|
||||||
|
hooks:
|
||||||
|
- id: shellcheck
|
||||||
|
# args: ["--severity=warning"] # Optionally only show errors and warnings
|
@@ -2,5 +2,5 @@
|
|||||||
|
|
||||||
# This has the effect of making visibility=hidden symbols private in object files
|
# This has the effect of making visibility=hidden symbols private in object files
|
||||||
for obj in "$@" ; do
|
for obj in "$@" ; do
|
||||||
ld -r $obj -o $obj.tmp && mv $obj.tmp $obj
|
ld -r "$obj" -o "$obj.tmp" && mv "$obj.tmp" "$obj"
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user