Skip to content

Commit fe36e27

Browse files
committed
exclude more files and remove main in test.cc
1 parent bd309ab commit fe36e27

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Package.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ let package = Package(
5656
"absl/base/internal/spinlock_linux.inc",
5757
"absl/base/internal/spinlock_posix.inc",
5858
"absl/base/internal/spinlock_win32.inc",
59+
// other files
60+
"absl/flags/flag_benchmark.lds",
61+
"absl/abseil.podspec.gen.py",
5962
],
6063
sources: [
6164
"absl/"

SwiftPMTests/build-test/test.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,5 @@
4848
#include "absl/types/variant.h"
4949

5050
// Test for duplicate `_main` symbol.
51-
int main(int argc, char** argv) {}
51+
// _main is defined in runner.swift, any other definition of `_main` in abseil
52+
// files will cause a duplicate symbol error.

0 commit comments

Comments
 (0)