Skip to content

Commit

Permalink
Add hello-world executable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterymath committed Nov 4, 2022
1 parent a837f5b commit 1e6032f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cmake_minimum_required(VERSION 3.18)
set(LLVM_MOS_PLATFORM sim)
find_package(llvm-mos-sdk REQUIRED)
project(smoke-test)
add_executable(hello hello.c)
6 changes: 6 additions & 0 deletions hello.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <stdio.h>

int main(void) {
printf("Hello, world!\n");
return 0;
}

0 comments on commit 1e6032f

Please sign in to comment.