Skip to content

Commit

Permalink
Merge 35a981a into 09fc462
Browse files Browse the repository at this point in the history
  • Loading branch information
kpp committed Aug 12, 2015
2 parents 09fc462 + 35a981a commit 3d6af93
Show file tree
Hide file tree
Showing 16 changed files with 380 additions and 337 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ compiler:

os:
- linux
- osx

sudo: false
cache:
Expand All @@ -29,6 +30,10 @@ branches:
- develop
- /^.*travis.*$/

matrix:
allow_failures:
- os: osx

env:
matrix: # fix all scripts (e.g. install-dependencies.sh) if you rename LLVM_USE[On/Off]
- USE_LLVM=Off
Expand All @@ -43,7 +48,7 @@ env:
BUILD_TYPE=Coverage

before_install:
- pip install --user cpp-coveralls
- source .travis/${TRAVIS_OS_NAME}/before_install.sh

before_script:
- mkdir -p build
Expand Down
3 changes: 3 additions & 0 deletions .travis/linux/before_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

pip install --user cpp-coveralls
11 changes: 11 additions & 0 deletions .travis/osx/before_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

if [[ "${CC}" == "gcc" ]]; then
export CC=gcc-4.8
export CXX=g++-4.8
fi

function brew_upgrade { brew outdated $1 || brew upgrade $1; }

brew update
brew install readline
19 changes: 4 additions & 15 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ project(llst)

find_package(Threads REQUIRED QUIET)
find_package(READLINE)
find_package(TINFO)
find_package(LLVM ${LLVM_PACKAGE_VERSION} EXACT)
find_package(POD2MAN)
find_package(GZIP REQUIRED)
Expand All @@ -34,14 +33,11 @@ else()
endif()

if (USE_READLINE)
if (READLINE_FOUND AND TINFO_FOUND)
if (READLINE_FOUND)
message(STATUS "Using readline library")
set_source_files_properties(src/CompletionEngine.cpp PROPERTIES COMPILE_DEFINITIONS USE_READLINE)
set (READLINE_LIBS_TO_LINK ${READLINE_LIBRARIES} ${TINFO_LIBRARIES})
set (READLINE_LIBS_TO_LINK ${READLINE_LIBRARIES})
else()
if(NOT TINFO_FOUND)
message(SEND_ERROR "Library readline depends on tinfo.\nYou may configure with -DUSE_READLINE=OFF.")
endif()
if(NOT READLINE_FOUND)
message(SEND_ERROR "Library readline is not found.\nYou may configure with -DUSE_READLINE=OFF.")
endif()
Expand Down Expand Up @@ -88,8 +84,6 @@ add_subdirectory(include)
include_directories(include)

add_library(stapi
src/TSmalltalkInstruction.cpp
src/InstructionDecoder.cpp
src/ParsedBytecode.cpp
src/ParsedMethod.cpp
src/ParsedBlock.cpp
Expand All @@ -111,22 +105,17 @@ add_library(memory_managers ${MM_CPP_FILES})

# Base set of sources needed in every build
add_library(standart_set
src/vm.cpp
src/args.cpp
src/CompletionEngine.cpp
src/Image.cpp
src/primitives.cpp
src/TDictionary.cpp
src/TSymbol.cpp
src/vm.cpp

src/TSmalltalkInstruction.cpp
src/InstructionDecoder.cpp
src/ParsedMethod.cpp
src/ParsedBytecode.cpp
src/ParsedBlock.cpp

src/ControlGraph.cpp
src/ControlGraphVisualizer.cpp
src/Timer.cpp
src/GCLogger.cpp
)
Expand All @@ -140,7 +129,7 @@ if (USE_LLVM)
)
endif()

add_executable(llst src/main.cpp src/vm.cpp)
add_executable(llst src/main.cpp)
add_dependencies(llst image)

if (USE_LLVM)
Expand Down
12 changes: 0 additions & 12 deletions cmake/FindTINFO.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion include/analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <set>
#include <vector>

#include <instructions.h>
#include <stapi.h>

namespace llvm {
class Value;
Expand Down
Loading

0 comments on commit 3d6af93

Please sign in to comment.