diff options
| author | Julian Blake Kongslie | 2022-06-26 22:33:35 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-06-26 22:33:35 -0700 |
| commit | 63e8930dd238ef80b226223cfd83f73dbb858a81 (patch) | |
| tree | 9b068cc698cab3feed2e15acbd4d67970405fed0 | |
| parent | Move a bunch of code from headers to separate compilation units. (diff) | |
| download | issim-63e8930dd238ef80b226223cfd83f73dbb858a81.tar.xz | |
Support link-time optimization.
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | git-tag.h | 4 | ||||
| -rw-r--r-- | main.cpp | 1 |
3 files changed, 4 insertions, 7 deletions
| @@ -1,4 +1,4 @@ | |||
| 1 | OPTIMIZE ?= -O3 | 1 | OPTIMIZE ?= -O3 -flto |
| 2 | DEBUG ?= -g | 2 | DEBUG ?= -g |
| 3 | 3 | ||
| 4 | AR ?= ar | 4 | AR ?= ar |
| @@ -21,9 +21,9 @@ endif | |||
| 21 | $(info Version ${VERSION}) | 21 | $(info Version ${VERSION}) |
| 22 | 22 | ||
| 23 | define GITTAGCPP = | 23 | define GITTAGCPP = |
| 24 | #include <string> | 24 | #include "git-tag.h" |
| 25 | 25 | ||
| 26 | std::string GIT_TAG = "$(subst ",\",${VERSION})"; | 26 | const char *GIT_TAG = "$(subst ",\",${VERSION})"; |
| 27 | endef | 27 | endef |
| 28 | export GITTAGCPP | 28 | export GITTAGCPP |
| 29 | 29 | ||
| @@ -1,5 +1,3 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | #include <string> | 3 | extern const char *GIT_TAG; |
| 4 | |||
| 5 | extern const std::string GIT_TAG; | ||
| @@ -2,7 +2,6 @@ | |||
| 2 | #include <iostream> | 2 | #include <iostream> |
| 3 | #include <memory> | 3 | #include <memory> |
| 4 | #include <optional> | 4 | #include <optional> |
| 5 | #include <string> | ||
| 6 | #include <utility> | 5 | #include <utility> |
| 7 | 6 | ||
| 8 | #include "aisa/aisa.h" | 7 | #include "aisa/aisa.h" |
