mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-09 21:33:23 +08:00
Configure default compiler for just
This commit is contained in:
11
justfile
11
justfile
@@ -7,7 +7,7 @@
|
||||
# Contributors : Nul None <nul@none.org>
|
||||
# |
|
||||
# Created On : <2025-06-18>
|
||||
# Last Modified : <2025-06-19>
|
||||
# Last Modified : <2025-06-20>
|
||||
#
|
||||
# just (build)
|
||||
# just debug
|
||||
@@ -23,7 +23,14 @@
|
||||
|
||||
set windows-shell := ['cmd', '/c']
|
||||
|
||||
CC := 'gcc'
|
||||
CC := if os() == 'windows' {
|
||||
"gcc"
|
||||
} else if os() == 'macos' {
|
||||
"clang"
|
||||
} else {
|
||||
"cc"
|
||||
}
|
||||
|
||||
DEBUGGER := 'gdb'
|
||||
|
||||
CFLAGS_base := '-Iinclude -Ilib'
|
||||
|
Reference in New Issue
Block a user