Skip to content

Commit 3d49d8a

Browse files
committed
Add RootFS testsuite entry.
1 parent a954d6f commit 3d49d8a

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

0_RootFS/Rootfs/bundled/testsuite/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ $(eval $(call enable_language,cxx,c++))
2121
$(eval $(call enable_language,fortran,gfortran))
2222
$(eval $(call enable_language,go,go))
2323
$(eval $(call enable_language,rust,rustc))
24+
$(eval $(call enable_language,ocaml,ocamlopt))
2425

2526
define unesc
2627
$(subst -,/,$1)

0_RootFS/Rootfs/bundled/testsuite/common.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ CXX ?= $(target)-c++
6060
FC ?= $(target)-f77
6161
GO ?= $(target)-go
6262
RUSTC ?= $(target)-rustc
63+
OCAMLOPT ?= $(target)-ocamlopt
6364

6465
# Create default rule for that directory so it can be created, if need be:
6566
$(PROJECT_BUILD):
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
PROJECT_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
2+
BINS = $(PROJECT_NAME)$(exeext)
3+
4+
include ../../common.mk
5+
6+
$(PROJECT_BUILD)/$(PROJECT_NAME)$(exeext): $(PROJECT_NAME).ml
7+
$(call color,$(OCAMLOPT),-o $@ $<)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let () = print_endline "Hello, World!"

0 commit comments

Comments
 (0)