Skip to content

Commit

Permalink
build(meson): only build on Linux
Browse files Browse the repository at this point in the history
related to pistacheio#41
related to pistacheio#183
related to pistacheio#760
closes     pistacheio#960
related to pistacheio#985

related to pistacheio#6
related to pistacheio#538
related to pistacheio#649
related to pistacheio#741
related to pistacheio#874

closes     pistacheio#525
  • Loading branch information
Tachi107 committed Sep 27, 2021
1 parent deb362d commit 7ce5da3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SPDX-License-Identifier: Apache-2.0
[![autopkgtest](https://github.com/pistacheio/pistache/actions/workflows/autopkgtest.yaml/badge.svg)](https://github.com/pistacheio/pistache/actions/workflows/autopkgtest.yaml)
[![REUSE status](https://api.reuse.software/badge/github.com/pistacheio/pistache)](https://api.reuse.software/info/github.com/pistacheio/pistache)

Pistache is a modern and elegant HTTP and REST framework for C++. It is entirely written in pure-C++17 and provides a clear and pleasant API.
Pistache is a modern and elegant HTTP and REST framework for C++. It is entirely written in pure-C++17[*](#linux-only) and provides a clear and pleasant API.

## Documentation

Expand Down Expand Up @@ -252,3 +252,5 @@ int main() {
## Project status
Pistache hasn't yet hit the 1.0 release. This means that the project is _unstable_ but not _unusable_. In fact, most of the code is production ready; you can use Pistache to develop a RESTful API without issues, but the HTTP client has a few issues in it that make it buggy.
<b id="linux-only">\*</b> While most code uses modern C++, Pistache makes use of some Linux-specific APIs where the standard library doesn't provide alternatives, and works only on that OS. See [#6](https://github.com/pistacheio/pistache/issues/6#issuecomment-242398225) for details. If you know how to help, feel free to open an issue!
4 changes: 4 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ project(
meson_version: '>=0.50.0'
)

if host_machine.system() != 'linux'
error('Pistache currenly only supports Linux. See https://github.com/pistacheio/pistache/issues/6#issuecomment-242398225 for more information')
endif

compiler = meson.get_compiler('cpp')

# Wrapping arguments inside a call to get_supported_arguments so that only supported arguments get applied
Expand Down

0 comments on commit 7ce5da3

Please sign in to comment.