Skip to content

Commit

Permalink
Update README.osx
Browse files Browse the repository at this point in the history
  • Loading branch information
bsampath committed Mar 25, 2013
1 parent 29d6946 commit b798cac
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions folly/README.osx
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,17 @@ In addition to the dependencies listed in the README file, the following would b
# make
# make install

Major source changes
--------------------
Most Macs come with a case insensitive file system. This causes issue with String.h in folly. As a
temporary fix, it has been renamed as FollyString.h to prevent it from interfering with standard headers.
Besides this, the following linux/gcc-isms have been modified to enable compilation on OSX,

1. byteswap.h is auto generated on compile, when the system doesn't have one.
2. Added boost system and gnulib m4 macros
3. OSX does not have clock_getres and clock_gettime functions. Created these as wrappers around mach time
kernel interfaces.
4. Handled the case where the POPCNT instruction is not present for the processor architecture and gnu
indirect functions are not supported.
5. Handled the __GNU_PREREQ missing case with a locally defined macro.

0 comments on commit b798cac

Please sign in to comment.