default make forbuild to cc instead of clang
This commit is contained in:
parent
46f657713c
commit
b25f83f3de
@ -1,6 +1,11 @@
|
||||
t0g ← •MonoTime@
|
||||
#!build/obj2/for_build
|
||||
# to emulate on makefile transition: NO_LDL → rm_lf=-ldl; no_fPIC → rm_f=-fPIC; something something PIE
|
||||
# todo:
|
||||
# clean
|
||||
# clangd commands generation
|
||||
# forcing bytecode/singeli/replxx directories to whatever's applicable
|
||||
# when adding `make forbuild` in build/build, make it run a sanity check of the output before copying to build/obj2/for_build
|
||||
|
||||
⟨Spawn, WaitForOne⟩ ← ⟨⟩ •Import "fork.bqn"
|
||||
⟨Serialize, Deserialize⟩ ← •Import "serialize.bqn"
|
||||
@ -13,7 +18,6 @@ opts ← ⟨
|
||||
⟨0, "j", @, "Number of parallel jobs"⟩
|
||||
⟨1, "verbose", 0, "Log more things"⟩
|
||||
⟨1, "rebuild", 0, "Forcibly rebuild everything"∾@+10⟩
|
||||
# TODO clean
|
||||
|
||||
⟨0, "CC", @, "The used C compiler"⟩
|
||||
⟨0, "LD", @, "Linker of the final binary; defaults to CC, or CXX if REPLXX=1"⟩
|
||||
@ -38,7 +42,6 @@ opts ← ⟨
|
||||
⟨1, "pkgconfig", 1, "Attempt to use pkg-config to find libffi flags"⟩
|
||||
⟨1, "singeli", 0, "Enable compilation with Singeli"⟩
|
||||
⟨1, "replxx", 0, "Enable REPLXX"∾@+10⟩
|
||||
# TODO options for forcing around the bytecode/singeli/replxx directories
|
||||
|
||||
⟨1, "c", 0, "Disable some default flags"⟩
|
||||
⟨1, "O3", @, "Use '-O3'; On by default unless 'c=1'"⟩
|
||||
|
||||
4
makefile
4
makefile
@ -38,7 +38,7 @@ shared-o3:
|
||||
shared-c:
|
||||
@"${MAKE}" i_OUTPUT=libcbqn.so i_SHARED=1 custom=1 run_incremental_0
|
||||
forbuild:
|
||||
@"${MAKE}" i_singeli=0 i_t=forbuild i_f="-O2 -DFOR_BUILD" i_FFI=0 i_OUTPUT=build/obj2/for_build run_incremental_0
|
||||
@"${MAKE}" i_singeli=0 i_CC=cc i_t=forbuild i_f="-O2 -DFOR_BUILD" i_FFI=0 i_OUTPUT=build/obj2/for_build run_incremental_0
|
||||
c:
|
||||
@"${MAKE}" custom=1 run_incremental_0
|
||||
|
||||
@ -182,7 +182,7 @@ single-c:
|
||||
# actual build
|
||||
run_incremental_0:
|
||||
ifeq ($(i_t),forbuild)
|
||||
mkdir -p build/obj2
|
||||
@mkdir -p build/obj2
|
||||
endif
|
||||
ifeq ($(verbose),1)
|
||||
@echo "build directory: $$("${MAKE}" builddir)"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user