Skip to content

Commit 063d976

Browse files
C make
1 parent b1ddd2e commit 063d976

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

ner_environment/build_system/build_system.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,16 @@ def build(profile: str = typer.Option(None, "--profile", "-p", callback=unsuppor
5757
print("[bold blue]CMake project detected.")
5858

5959
if clean:
60-
# Clean by removing build directory entirely
61-
run_command(["docker", "compose", "run", "--rm", "ner-gcc-arm", "rm", "-rf", "/home/app/build"], stream_output=True)
62-
print("[blue]Cleaned build directory.[/blue]")
60+
# Clean main build directory and any subproject build directories
61+
clean_cmd = """
62+
cd /home/app && \
63+
rm -rf build Appli/build Boot/build && \
64+
find . -name CMakeCache.txt -delete
65+
"""
66+
run_command(["docker", "compose", "run", "--rm", "ner-gcc-arm", "bash", "-c", clean_cmd], stream_output=True)
67+
print("[blue]Cleaned build directories.[/blue]")
6368
else:
64-
# Always configure and build in one command to ensure consistency
69+
# Configure and build in one command
6570
build_cmd = """
6671
cd /home/app && \
6772
mkdir -p build && \

0 commit comments

Comments
 (0)