diff options
| author | Wilson Fung <[email protected]> | 2012-07-26 03:22:53 -0800 |
|---|---|---|
| committer | Andrew Boktor <[email protected]> | 2014-08-14 13:48:52 -0700 |
| commit | 9a0e4e4a776a963c9950dc3dcd0d23ee0739b755 (patch) | |
| tree | 70c6f73230fe8fcfdd0fd2a3a7eb525e1f145b80 /src/gpgpu-sim/Makefile | |
| parent | 1c7ed16cc28f1d740ac7abc773eb4016d49fcba4 (diff) | |
Clean up the unordered_map fallback support.
- Now there is only one macro for all use of unordered_map in the code.
- Moving all instances of gcc/cuda version detection into a single file.
- Adding a warning when the fallback is triggered.
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13542]
Diffstat (limited to 'src/gpgpu-sim/Makefile')
| -rw-r--r-- | src/gpgpu-sim/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpgpu-sim/Makefile b/src/gpgpu-sim/Makefile index 4f636fb..fdb4503 100644 --- a/src/gpgpu-sim/Makefile +++ b/src/gpgpu-sim/Makefile @@ -38,7 +38,8 @@ else CXXFLAGS_L2CACHE = -Wall endif -GNUC_CPP0X := $(shell gcc --version | perl -ne 'if (/gcc\s+\(.*\)\s+([0-9.]+)/){ if($$1 >= 4.3) {$$n=1} else {$$n=0;} } END { print $$n; }') +include ../../version_detection.mk + ifeq ($(GNUC_CPP0X), 1) CXXFLAGS += -std=c++0x CXXFLAGS_L2CACHE += -std=c++0x |
