19 lines
353 B
Plaintext
19 lines
353 B
Plaintext
# build.ninja
|
|
cc = clang
|
|
cxx = clang++
|
|
cflags = -Werror -Weverything
|
|
cxxflags = -Werror -Weverything
|
|
#cflags = -O2
|
|
#cxxflags = -O2
|
|
|
|
rule compile
|
|
command = $cxx $cxxflags -c $in -o $out
|
|
|
|
rule link
|
|
command = $cxx $in -o $out
|
|
|
|
build loader_example.o: compile loader_example.cc
|
|
build loader_example: link loader_example.o
|
|
|
|
default loader_example
|