mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-25 22:19:12 +00:00
Make poll() the default (#2065)
* Make poll() the default select() can still be enabled by defining CPPHTTPLIB_USE_SELECT. * Run tests with select() and poll()
This commit is contained in:
parent
cdc223019a
commit
6e73a63153
6 changed files with 57 additions and 8 deletions
|
@ -2,7 +2,7 @@ FROM yhirose4dockerhub/ubuntu-builder AS builder
|
|||
WORKDIR /build
|
||||
COPY httplib.h .
|
||||
COPY docker/main.cc .
|
||||
RUN g++ -std=c++23 -static -o server -O2 -I. -DCPPHTTPLIB_USE_POLL main.cc && strip server
|
||||
RUN g++ -std=c++23 -static -o server -O2 -I. main.cc && strip server
|
||||
|
||||
FROM scratch
|
||||
COPY --from=builder /build/server /server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue