Commit 9fc57854 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #31 from filipegoncalves/master

Removing hardcoded filename in ast.cpp
parents c33d4f38 6d6769c7
......@@ -39,7 +39,7 @@ sudo apt-get install libncurses5-dev zlib1g-dev
### LLVM + clang
LLVM and clang depend on a pretty modern compiler; the steps below assume you uinstalled GCC 4.8.2 as described above. It should be possible to build using clang >= 3.1, such as what you might find on a Mac, but that will require changes to the way LLVM is configured (specified in src/Makefile) that I haven't tested.
LLVM and clang depend on a pretty modern compiler; the steps below assume you installed GCC 4.8.2 as described above. It should be possible to build using clang >= 3.1, such as what you might find on a Mac, but that will require changes to the way LLVM is configured (specified in src/Makefile) that I haven't tested.
```
cd ~/pyston_deps
......@@ -68,8 +68,6 @@ make -j4
make install
```
TODO would be nice to install this locally like the rest of the dependencies
### valgrind
Pyston currently has a build-time dependency on valgrind headers, for adding hooks to its custom memory allocator. (TODO add a flag to enable this since it's normally not used.) To satisfy this, do:
......@@ -97,6 +95,12 @@ Then, add this line to your Makefile.local:
VALGRIND := VALGRIND_LIB=$(HOME)/pyston_deps/valgrind-3.9.0-install/lib/valgrind $(HOME)/pyston_deps/valgrind-3.9.0-install/bin/valgrind
```
### zsh
`zsh` is needed when running pyston tests.
```
apt-get install zsh
```
# Optional dependencies
### Debug build of libunwind
......
......@@ -76,7 +76,7 @@ std::string getOpSymbol(int op_type) {
case AST_TYPE::USub:
return "-";
default:
fprintf(stderr, "Unknown op type (ast.cpp:" STRINGIFY(__LINE__) "): %d\n", op_type);
fprintf(stderr, "Unknown op type (" __FILE__ ":" STRINGIFY(__LINE__) "): %d\n", op_type);
abort();
}
}
......@@ -138,7 +138,7 @@ std::string getOpName(int op_type) {
case AST_TYPE::USub:
return "__neg__";
default:
fprintf(stderr, "Unknown op type (ast.cpp:" STRINGIFY(__LINE__) "): %d\n", op_type);
fprintf(stderr, "Unknown op type (" __FILE__ ":" STRINGIFY(__LINE__) "): %d\n", op_type);
abort();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment