diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-05-06 19:31:40 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-05-06 19:31:40 +0900 |
| commit | d50021d045df809aa8e6debf1a7e5727dabcd95c (patch) | |
| tree | a0c999edfd0ad5cdf39f24bc19a5514dba443fa1 /src | |
| parent | 4c139eb0390d065e875bec2515331aa1d555a87d (diff) | |
Use trunc as default value for --file-allocation on Android build
Diffstat (limited to 'src')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index d0740fd6..352407cb 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -376,7 +376,12 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers() OptionHandler* op(new ParameterOptionHandler (PREF_FILE_ALLOCATION, TEXT_FILE_ALLOCATION, +#if defined(__ANDROID__) || defined(ANDROID) + // V_PREALLOC is too slow for Android device + V_TRUNC, +#else // !(defined(__ANDROID__) || defined(ANDROID)) V_PREALLOC, +#endif // !(defined(__ANDROID__) || defined(ANDROID)) std::vector<std::string> (vbegin(params), vend(params)), 'a')); |
