Skip to content

Commit

Permalink
force cmake to use clang while compiling standalone argp
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyuria authored and Cyuria committed Jan 27, 2024
1 parent f431609 commit 2c3316e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# Compiled files
# Compiled stuff
build/*
lib/*argp-standalone*
bin/*

# Allow local user config files without clogging the repo or gitignore
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ $(dirs):
mkdir -p $@

$(lib)/$(argp-standalone):
(cd argp-standalone && cmake . -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build build)
(cd argp-standalone && cmake . -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=clang && cmake --build build)
cp $$(find $(argp-standalone-dir) -type f -name $(argp-standalone)) $(lib)/

clean:
Expand Down
Binary file removed lib/libargp-standalone.a
Binary file not shown.

0 comments on commit 2c3316e

Please sign in to comment.