diff options
author | Yabin Cui <yabinc@google.com> | 2016-02-25 11:02:30 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2016-02-25 11:02:30 -0800 |
commit | ff7465c896ab90c162cbcf2b141c4cdd79bf437f (patch) | |
tree | 8cd8c3a5b0aff1e52d9c2b4de308ccb30df2e525 /simpleperf/cmd_help.cpp | |
parent | e0908972807e5366aba6af130a53803333f94145 (diff) | |
download | extras-ff7465c896ab90c162cbcf2b141c4cdd79bf437f.tar.gz |
simpleperf: fix mac build.
I forgot that mac doesn't support whole static library. Change to static library
to avoid hiting the same problem in the future.
Bug: 26962895
Change-Id: Ia8e26c2e1cf7621391e00e100b22b7ed451dfa32
Diffstat (limited to 'simpleperf/cmd_help.cpp')
-rw-r--r-- | simpleperf/cmd_help.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/simpleperf/cmd_help.cpp b/simpleperf/cmd_help.cpp index 93a90ee1..0bb62311 100644 --- a/simpleperf/cmd_help.cpp +++ b/simpleperf/cmd_help.cpp @@ -73,6 +73,6 @@ void HelpCommand::PrintLongHelpForOneCommand(const Command& command) { printf("%s\n", command.LongHelpString().c_str()); } -__attribute__((constructor)) static void RegisterHelpCommand() { +void RegisterHelpCommand() { RegisterCommand("help", [] { return std::unique_ptr<Command>(new HelpCommand); }); } |