summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-06-26 22:33:35 -0700
committerJulian Blake Kongslie2022-06-26 22:33:35 -0700
commit63e8930dd238ef80b226223cfd83f73dbb858a81 (patch)
tree9b068cc698cab3feed2e15acbd4d67970405fed0
parentMove a bunch of code from headers to separate compilation units. (diff)
downloadissim-63e8930dd238ef80b226223cfd83f73dbb858a81.tar.xz
Support link-time optimization.
Diffstat (limited to '')
-rw-r--r--Makefile6
-rw-r--r--git-tag.h4
-rw-r--r--main.cpp1
3 files changed, 4 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index be9dc32..5c0e04a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
1OPTIMIZE ?= -O3 1OPTIMIZE ?= -O3 -flto
2DEBUG ?= -g 2DEBUG ?= -g
3 3
4AR ?= ar 4AR ?= ar
@@ -21,9 +21,9 @@ endif
21$(info Version ${VERSION}) 21$(info Version ${VERSION})
22 22
23define GITTAGCPP = 23define GITTAGCPP =
24#include <string> 24#include "git-tag.h"
25 25
26std::string GIT_TAG = "$(subst ",\",${VERSION})"; 26const char *GIT_TAG = "$(subst ",\",${VERSION})";
27endef 27endef
28export GITTAGCPP 28export GITTAGCPP
29 29
diff --git a/git-tag.h b/git-tag.h
index 280f0c7..0f36b73 100644
--- a/git-tag.h
+++ b/git-tag.h
@@ -1,5 +1,3 @@
1#pragma once 1#pragma once
2 2
3#include <string> 3extern const char *GIT_TAG;
4
5extern const std::string GIT_TAG;
diff --git a/main.cpp b/main.cpp
index 4bd455a..e1ec736 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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"