diff options
| author | Austin Seipp <as@hacks.yi.org> | 2011-12-06 01:11:11 -0600 |
|---|---|---|
| committer | Austin Seipp <as@hacks.yi.org> | 2011-12-06 01:15:29 -0600 |
| commit | b513a5a5001b850a153db12d9621d00a70ff929a (patch) | |
| tree | 83f22cf7a06a30d827ddea7e9b537aeabfc8d7de /src/rt/rust_timer.cpp | |
| parent | 8d8148f1f740ce80a07a19830cfae8a1851a7c4f (diff) | |
| download | rust-b513a5a5001b850a153db12d9621d00a70ff929a.tar.gz rust-b513a5a5001b850a153db12d9621d00a70ff929a.zip | |
Make valgrind usage more consistent and less error prone.
I was still having issues with the build system somehow getting confused as to which set of valgrind headers to use when compiling rt. This commit moves all the valgrind headers into their own directory under rt and makes the usage more consistent. The compiler is now passed the -DNVALGRIND flag when valgrind is not installed, as opposed to passing -DHAVE_VALGRIND. We also pass -I src/rt to the compiler when building rt so you can more easily import what you want. I also cleaned up some erroneous #includes along the way. It should be safe to always just import the local valgrind headers and use them without question. NVALGRIND turns the operations to no-ops when it is active, and the build and tests run cleanly with or without.
Diffstat (limited to 'src/rt/rust_timer.cpp')
| -rw-r--r-- | src/rt/rust_timer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rt/rust_timer.cpp b/src/rt/rust_timer.cpp index eb1f30b93ee..ffa98766763 100644 --- a/src/rt/rust_timer.cpp +++ b/src/rt/rust_timer.cpp @@ -1,5 +1,5 @@ #include "rust_internal.h" -#include "valgrind.h" +#include "vg/valgrind.h" // The mechanism in this file is very crude; every domain (thread) spawns its // own secondary timer thread, and that timer thread *never idles*. It |
