Changeset 134010


Ignore:
Timestamp:
Mar 17, 2015, 3:07:48 AM (4 years ago)
Author:
blair@…
Message:

protobuf3-cpp: early fail on Mac OS X 10.6 or older.

src/google/protobuf/stubs/common.h:317
#if defined(_MSC_VER)
#define GOOGLE_THREAD_LOCAL declspec(thread)
#else
#define GOOGLE_THREAD_LOCAL
thread
#endif

src/google/protobuf/arena.h:318

static GOOGLE_THREAD_LOCAL ThreadCache thread_cache_;

In file included from ./google/protobuf/arenastring.h:39,

from google/protobuf/arenastring.cc:34:

./google/protobuf/arena.h:318: error: thread-local storage not supported for this target

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/protobuf3-cpp/Portfile

    r134009 r134010  
    4040worksrcdir      protobuf-${real_version}
    4141
     42pre-fetch {
     43    if {${os.platform} eq "darwin" && ${os.major} < 11} {
     44        ui_error "${name} uses thread-local storage which is not supported on Mac OS X 10.6 or older."
     45        return -code error "incompatible Mac OS X version"
     46    }
     47}
     48
    4249checksums       sha1   5cf937727a90b09e79921944cfcdbd310a5a0234 \
    4350                sha256 ece45f4957140edc9517c3e03ca5509f70847d576ca5ae267fa0a8ee20ee1c85
Note: See TracChangeset for help on using the changeset viewer.