Skip to content

Instantly share code, notes, and snippets.

View hanumantmk's full-sized avatar

Mira Carey hanumantmk

  • MongoDB
  • Austin, TX
View GitHub Profile
#!/usr/bin/env ruby
# This script sorts static libraries in the topological order suitable for
# passing to ld. No need for --start-group/--end-group anymore. Should speed
# up the linking a bit. When the libraries contain actual circular dependecies
# the script will detect minimal groups of those and surround them with
# --start-group/--end-group.
#
# To run you need Linux (maybe OS X), Ruby 1.9+ and the rgl gem installed:
#
align_struct_init_span = 1
align_var_def_colon = true
align_var_def_span = 0
indent_align_string = true
indent_brace = 0
mod_paren_on_return = remove
nl_after_return = true
nl_func_var_def_blk = 1
align_enum_equ_span = 1
align_func_params = true