:3
This commit is contained in:
18
test/Makefile
Normal file
18
test/Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
|
||||
all: ../build/libc+ test compile_commands.json
|
||||
|
||||
clean:
|
||||
rm -rf test *.o compile_commands.json
|
||||
|
||||
test: test.o
|
||||
cc -o $@ $^ -L../build -l:libc+.a # -nostdlib++ -lsupc++
|
||||
|
||||
%.o: %.cpp
|
||||
cc -c -o $@ $< -std=c++23 -I../src/include # -nostdinc++
|
||||
|
||||
../build/libc+:
|
||||
$(MAKE) -C ../
|
||||
|
||||
compile_commands.json:
|
||||
compiledb -n make
|
||||
7
test/test.cpp
Normal file
7
test/test.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <type_traits>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
std
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user