Skip to content

Commit 9433e35

Browse files
committed
Dont build version if compiling for IOS
1 parent de41357 commit 9433e35

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

util/build_version.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44
// of patent rights can be found in the PATENTS file in the same directory.
55
//
66
#pragma once
7+
#if !defined(IOS_CROSS_COMPILE)
8+
// if we compile with Xcode, we don't run build_detect_vesion, so we don't
9+
// generate these variables
710
// these variables tell us about the git config and time
811
extern const char* rocksdb_build_git_sha;
912

1013
// these variables tell us when the compilation occurred
1114
extern const char* rocksdb_build_compile_time;
1215
extern const char* rocksdb_build_compile_date;
13-
16+
#endif

0 commit comments

Comments
 (0)