Skip to content

Commit ecd2c9c

Browse files
committed
Ignore and clean up stray -.o file from crc32cer compilation
During cmake compilation of the crc32cer dependency (used by Kafka integration), a stray object file named "-.o" is occasionally created in the repository root. This appears to happen during cmake's compiler detection/test phase. This commit: - Adds -.o to .gitignore to prevent it from appearing in git status - Updates bin/bootstrap to automatically remove the file after dependency compilation The dash prefix makes this file particularly annoying since it's interpreted as a command-line option by most tools.
1 parent 42539eb commit ecd2c9c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ erl_crash.dump
2222
# Ignore package tarball (built via "mix hex.build").
2323
lightning-*.tar
2424

25+
# Ignore stray cmake object file from crc32cer compilation
26+
-.o
27+
2528
# Ignore adaptor registry cache
2629
adaptor_registry_cache.json
2730

bin/bootstrap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,13 @@ main() {
255255

256256
mix deps.compile
257257

258+
# Clean up stray object file created by crc32cer cmake compilation
259+
# This file sometimes escapes the build directory during cmake's compiler tests
260+
if [[ -f "-.o" ]]; then
261+
echo "🧹 Cleaning up stray cmake artifact (-.o)"
262+
rm -f ./-.o
263+
fi
264+
258265
# If you have already compiled Rambo explicitly via `mix compile.rambo`, and you
259266
# are still seeing the following error:
260267
#

0 commit comments

Comments
 (0)