mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 14:43:46 +01:00
72b5e4a2db
At first, we put the tor_git_revision constant in tor_main.c, so that we wouldn't have to recompile config.o every time the git revision changed. But putting it there had unintended side effect of forcing every program that wanted to link libor.a (including test, test-slow, the fuzzers, the benchmarks, etc) to declare their own tor_git_revision instance. That's not very nice, especially since we want to start supporting others who want to link against Tor (see 23846). So, create a new git_revision.c file that only contains this constant, and remove the duplicated boilerplate from everywhere else. Part of implementing ticket 23845.
18 lines
508 B
C
18 lines
508 B
C
/* Copyright 2001-2004 Roger Dingledine.
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
* Copyright (c) 2007-2017, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
#include "git_revision.h"
|
|
|
|
/** String describing which Tor Git repository version the source was
|
|
* built from. This string is generated by a bit of shell kludging in
|
|
* src/or/include.am, and is usually right.
|
|
*/
|
|
const char tor_git_revision[] =
|
|
#ifndef _MSC_VER
|
|
#include "micro-revision.i"
|
|
#endif
|
|
"";
|
|
|