Skip to content

Commit

Permalink
add runtime-cc (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
SKTT1Ryze authored Oct 27, 2023
1 parent eb387c1 commit 0295161
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime-cc/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# product
build
15 changes: 15 additions & 0 deletions runtime-cc/makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Makefile for runtime-cc

B = build
S = src

CC = clang++
CFLAGS = -std=c++20
CFLAGS += -Wall -O2 -D_GNU_SOURCE

RUNTIME = $B/runtime
RUNTIME_SRC = $(shell echo $S/*.cc)

$(RUNTIME): $(RUNTIME_SRC)
@if [ ! -d $B ]; then mkdir $B; fi
$(CC) $(CFLAGS) $(RUNTIME_SRC) -o $(RUNTIME)
5 changes: 5 additions & 0 deletions runtime-cc/src/main.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <iostream>

int main() {
std::cout << "Execute C++ runtime..." << std::endl;
}

0 comments on commit 0295161

Please sign in to comment.