projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbf27d4
)
partially revert 2e9fdf8841de40f008697ba8bf711fa3f3f2c0e8
author
Matthias Braun
<matze@braunis.de>
Wed, 7 Dec 2011 17:41:56 +0000
(18:41 +0100)
committer
Matthias Braun
<matze@braunis.de>
Wed, 7 Dec 2011 22:28:13 +0000
(23:28 +0100)
(releases don't have firm_revision.h so we need to check for
HAVE_FIRM_REVISION_H define)
Makefile
patch
|
blob
|
history
ir/common/firm.c
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
909d5c7
..
745b737
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-24,7
+24,7
@@
AR ?= ar
DLLEXT ?= .so
# Variants
-CFLAGS_all = -fPIC
+CFLAGS_all = -fPIC
-DHAVE_FIRM_REVISION_H
CFLAGS_debug = $(CFLAGS_all) -O0 -g3 -DDEBUG_libfirm
CFLAGS_profile = $(CFLAGS_all) -O3 -pg -DNDEBUG -fno-inline
LINKFLAGS_profile = -pg
diff --git
a/ir/common/firm.c
b/ir/common/firm.c
index
61dda05
..
916fccc
100644
(file)
--- a/
ir/common/firm.c
+++ b/
ir/common/firm.c
@@
-24,7
+24,9
@@
*/
#include "config.h"
-#include "firm_revision.h"
+#ifdef HAVE_FIRM_REVISION_H
+# include "firm_revision.h"
+#endif
#include <string.h>
#include <stdio.h>