ublk-org / ublksrv

ublk: userspace block device driver
MIT License
147 stars 50 forks source link

Makefile: compile c++ files in lib/ with c++11 #6

Closed old-memories closed 2 years ago

old-memories commented 2 years ago

Building libublksrv(/lib) requires only one c++ file: ublksrv_json.cpp, which depends on include/nlohmann/json.hpp. As doc of nlohmann/json.hpp says, it only requires c++11, so change cppflags for libublksrv from c++20 to c++11.

Signed-off-by: Ziyang Zhang ZiyangZhang@linux.alibaba.com