-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Icohedron/master
Update LLVM, ANTLR. Add runtime.
- Loading branch information
Showing
8 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cmake_minimum_required(VERSION 3.0) | ||
project(VCalcRuntime) | ||
|
||
# Set a variable for the runtime include directory. | ||
set(RUNTIME_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/include") | ||
|
||
# Build the actual runtime. | ||
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/src") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Gather our source files in this directory. | ||
set( | ||
vcalc_rt_files | ||
"${CMAKE_CURRENT_SOURCE_DIR}/placeholder.c" | ||
) | ||
|
||
# Build our executable from the source files. | ||
add_library(vcalcrt SHARED ${vcalc_rt_files}) | ||
target_include_directories(vcalcrt PUBLIC ${RUNTIME_INCLUDE}) | ||
|
||
# Symbolic link our library to the base directory so we don't have to go searching for it. | ||
symlink_to_bin("vcalcrt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <stdio.h> | ||
|
||
// Add function named dummyPrint with signature void(int) to llvm to have this linked in. | ||
void dummyPrint(int i) { | ||
printf("I'm a function! %d\n", i); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters