File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed
FuzzTests/FuzzingResources/Serializer/Corpus Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /bin/bash -l
2
2
3
- # Copyright 2018 Google
3
+ # Copyright 2018 Google LLC
4
4
#
5
5
# Licensed under the Apache License, Version 2.0 (the "License");
6
6
# you may not use this file except in compliance with the License.
20
20
# and SCRIPT_OUTPUT_FILE_0 are defined in the Run Script Build Phase of the
21
21
# XCode build target Firestore_FuzzTests_iOS that executes this script. XCode
22
22
# defines these environment variables and makes them available to the script.
23
+ #
24
+ # By default Xcode build phase scripts run in a stripped down environment that
25
+ # does not include user modifications to the PATH that might come from .profile
26
+ # or similar. The shebang line includes `bash -l` specifically to force the
27
+ # shell to pick up the user profile. This allows `protoc` to be found even if
28
+ # it isn't installed in /usr/local/bin.
23
29
24
30
if ! [ -x " $( command -v protoc) " ]; then
25
31
echo " This scripts needs the protoc command to be on the PATH."
Original file line number Diff line number Diff line change 1
- # Copyright 2018 Google
1
+ # Copyright 2018 Google LLC
2
2
#
3
3
# Licensed under the Apache License, Version 2.0 (the "License");
4
4
# you may not use this file except in compliance with the License.
@@ -32,14 +32,16 @@ Pod::Spec.new do |s|
32
32
s . osx . deployment_target = '10.12'
33
33
s . tvos . deployment_target = '10.0'
34
34
35
- # Check out only libFuzzer folder.
36
35
s . source = {
37
- :svn => 'https://llvm.org/svn /llvm-project/compiler-rt/trunk/lib/fuzzer '
36
+ :git => 'https://github.com/llvm /llvm-project.git '
38
37
}
39
38
40
- # Add all source files, except for the FuzzerMain.cpp.
41
- s . source_files = '*.{h,cpp,def}'
42
- s . exclude_files = 'FuzzerMain.cpp'
39
+ # The fuzzer is self-contained so only add its source files.
40
+ s . source_files = 'compiler-rt/lib/fuzzer/*.{h,cpp,def}'
41
+
42
+ # We run fuzz tests via FSTFuzzTestsPrincipal, so avoid linking a `main`
43
+ # function.
44
+ s . exclude_files = 'compiler-rt/lib/fuzzer/FuzzerMain.cpp'
43
45
44
46
s . library = 'c++'
45
47
You can’t perform that action at this time.
0 commit comments