master
Daniel Kolesa 2018-04-18 11:34:09 +02:00
parent 049ce44d3a
commit 855a936c0f
1 changed files with 4 additions and 9 deletions

View File

@ -20,21 +20,16 @@ files in there directly if you don't need the API documentation.
Libostd is built using the supplied C++ build tool. You need to compile the Libostd is built using the supplied C++ build tool. You need to compile the
build tool first using the compiler you will use to build the library itself. build tool first using the compiler you will use to build the library itself.
On a typical setup, this will involve: On a typical Unix-like setup, this will involve:
~~~ ~~~
c++ build.cc -o build -std=c++1z -I. -pthread c++ build.cc -o build -std=c++1z -I. -pthread
./build --help ./build --help
~~~ ~~~
This will typically build using either GCC or Clang with typically libstdc++ This will typically build using either GCC or Clang with the default standard
as a standard library implementation. **Keep in mind that it is you need library. **Keep in mind that it is you need at least Clang 4.0 or
at least Clang 4.0 or GCC 7.1 to build.** To switch to libc++: GCC 7.1 to build.**
~~~
c++ build.cc -o build -std=c++1z -I. -pthread -stdlib=libc++
CXXFLAGS="-stdlib=libc++" ./build
~~~
You can skip `-pthread` on Windows. You can skip `-pthread` on Windows.