[C++] Make FindEmulator's symlink support better
Now FindEmulator supports symlinks which refer
- a file in FindEmulator or
- a file which isn't a directory nor a symlink
Also findleaves.py follows symbolic links.
diff --git a/find.h b/find.h
index 725451c..ccd50e0 100644
--- a/find.h
+++ b/find.h
@@ -17,6 +17,7 @@
#include <memory>
#include <string>
+#include <unordered_set>
#include <vector>
#include "string_piece.h"
@@ -48,7 +49,7 @@
int mindepth;
bool redirect_to_devnull;
- unique_ptr<vector<string>> read_dirs;
+ unique_ptr<unordered_set<string>> read_dirs;
private:
FindCommand(const FindCommand&) = delete;