Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: C/C++ CI

on: [push]

jobs:
linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install
run: sudo apt install llvm-7-dev
- name: cmake configure
run: cmake .
- name: cmake build
run: cmake --build .
34 changes: 6 additions & 28 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 2.8.7)
project(Jet)


find_package(LLVM 6.0.0 REQUIRED CONFIG HINTS C:/users/space/desktop/llvm/llvm-6.0.0.src)
find_package(LLVM 7.0.0 REQUIRED CONFIG HINTS C:/users/space/desktop/llvm/llvm-7.0.0.src)
#find_package(Clang REQUIRED CONFIG HINTS C:/Users/space/Desktop/cfe-3.7.1.src)

message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
Expand All @@ -19,10 +19,10 @@ message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
include_directories(${LLVM_INCLUDE_DIRS})# ${CLANG_INCLUDE_DIR})
add_definitions(${LLVM_DEFINITIONS})

get_cmake_property(_variableNames VARIABLES)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach()
#get_cmake_property(_variableNames VARIABLES)
#foreach (_variableName ${_variableNames})
# message(STATUS "${_variableName}=${${_variableName}}")
#endforeach()

include_directories("${PROJECT_BINARY_DIR}" )# "C:/Users/Matthew/Desktop/cfe-3.7.1.src/include")

Expand All @@ -49,27 +49,6 @@ add_executable(Jet

source_group(Types REGULAR_EXPRESSION Types/*)

add_library(Racer
SHARED

racer.cpp

Compiler.cpp
CompilerContext.cpp
Expressions.cpp
ControlExpressions.cpp
DeclarationExpressions.cpp
Parser.cpp
Parselets.cpp
Source.cpp
Types/Types.cpp
Types/Function.cpp
Lexer.cpp
Token.cpp
Project.cpp
Compilation.cpp
)

include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
Expand All @@ -84,9 +63,8 @@ endif()
# target_compile_features(Racer PRIVATE cxx_range_for)
# target_compile_features(Jet PRIVATE cxx_range_for)

llvm_map_components_to_libnames(llvm_libs support core mcjit native ipo)
llvm_map_components_to_libnames(llvm_libs support core mcjit native ipo ARM)

# Link against LLVM libraries
target_link_libraries(Jet ${llvm_libs})# "C:/Users/Matthew/Desktop/cfe-3.7.1.src/Debug/lib/libclang.lib")

target_link_libraries(Racer ${llvm_libs})
Loading