> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.6.18 #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb 23 08:25:28 UTC 2024 x86_64 GNU/Linux 12:25:16 up 1 day 15:53, 2 users, load average: 0.54, 0.67, 0.67
This commit is contained in:
parent
4fc0e0e247
commit
7d566158c6
4 changed files with 4 additions and 4 deletions
|
@ -93,6 +93,5 @@ integration-tests: $(IMAGES)
|
||||||
test $$r -eq 0
|
test $$r -eq 0
|
||||||
|
|
||||||
test: unit-tests integration-tests
|
test: unit-tests integration-tests
|
||||||
@$(OBJ_DIR)/tests/expr_test
|
|
||||||
|
|
||||||
.PHONY: test integration-tests unit-tests
|
.PHONY: test unit-tests integration-tests
|
|
@ -12,12 +12,12 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
gnumake
|
gnumake
|
||||||
|
pkg-config
|
||||||
flex
|
flex
|
||||||
bison
|
bison
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
check
|
|
||||||
readline
|
readline
|
||||||
libllvm
|
libllvm
|
||||||
];
|
];
|
||||||
|
|
|
@ -7,3 +7,4 @@ $(OBJ_DIR)/%: %.c $(TEST_OBJS) app
|
||||||
@$(CC) $(CFLAGS) -o $@.o -c $<
|
@$(CC) $(CFLAGS) -o $@.o -c $<
|
||||||
@echo + LD $@
|
@echo + LD $@
|
||||||
@$(LD) $(LIBS) $(LDFLAGS) -o $@ $(TEST_OBJS) $@.o
|
@$(LD) $(LIBS) $(LDFLAGS) -o $@ $(TEST_OBJS) $@.o
|
||||||
|
@$@
|
||||||
|
|
2
result
2
result
|
@ -1 +1 @@
|
||||||
/nix/store/g0h98bppypvyz3z4sv45kl9218ad2gsq-nemu-2024-03-02
|
/nix/store/d0jlcjdrgsb5pis8flyy5ihifdnfhms5-am-kernels-riscv32-none-elf-2024.02.18
|
Loading…
Reference in a new issue