This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Set -D_LIBCPP_HAS_NO_THREADS and -D_LIBCPP_HAS_NO_MONOTONIC_CLOCK based on available_features
ClosedPublic

Authored by jroelofs on Sep 5 2014, 8:58 AM.

Details

Reviewers
danalbert
EricWF

Diff Detail

Event Timeline

jroelofs updated this revision to Diff 13321.Sep 5 2014, 8:58 AM
jroelofs retitled this revision from to [libcxx] Set -D_LIBCPP_HAS_NO_THREADS and -D_LIBCPP_HAS_NO_MONOTONIC_CLOCK based on available_features.
jroelofs updated this object.
jroelofs edited the test plan for this revision. (Show Details)
jroelofs added reviewers: danalbert, EricWF.
jroelofs added a subscriber: Unknown Object (MLST).
danalbert edited edge metadata.Sep 5 2014, 9:52 AM

How are those features getting set?

jroelofs updated this revision to Diff 13322.Sep 5 2014, 9:58 AM
jroelofs edited edge metadata.

I had been setting them in the lit.site.cfg, but it will work out better in zorg for them to come in from the command line too...

The updated patch lets you specify --param=additional_features=foo,bar,baz

danalbert added inline comments.Sep 5 2014, 10:05 AM
lit.cfg
296

Probably f.strip() to be safe. I don't know what lit would do with --param=additional_features=' foo, bar'

jroelofs updated this revision to Diff 13324.Sep 5 2014, 10:14 AM

Looks like they do end up with weird whitespace in that case... So strip them on the way in.

danalbert accepted this revision.Sep 5 2014, 10:16 AM
danalbert edited edge metadata.
This revision is now accepted and ready to land.Sep 5 2014, 10:16 AM
danalbert added inline comments.Sep 5 2014, 10:18 AM
lit.cfg
361

One nitpick: libcpp-has-no-monotonic-clock to match the other one?

jroelofs updated this revision to Diff 13325.Sep 5 2014, 10:26 AM
jroelofs edited edge metadata.

re-name the features for consistency

jroelofs closed this revision.Sep 5 2014, 10:31 AM

r217261