compile for OpenBSD
This commit is contained in:
@@ -4,8 +4,7 @@ const char* CC = "cc";
|
||||
// C++ compiler
|
||||
const char* CXX = "c++";
|
||||
|
||||
// The compilation options are chosen with gcc in mind, but clang should also work
|
||||
// Other compilers are not tested, but may work
|
||||
// Options are based on gcc, but should work for clang as well
|
||||
// You can read about gcc options by running "man gcc"
|
||||
|
||||
// Compiler options to use...
|
||||
|
||||
@@ -5,9 +5,7 @@ cd src
|
||||
# Install location
|
||||
PREFIX=/usr/local
|
||||
|
||||
|
||||
# Compile cppipe
|
||||
# The options are with gcc in mind, but should work with clang and maybe other compilers
|
||||
options="-std=c++17 -Ofast -fwhole-program -march=native -DNDEBUG -Wall -Wextra -Wno-parentheses -Wno-unused-result -s -pipe"
|
||||
# options="-std=c++17 -g"
|
||||
c++ -o cppipe $options cppipe.cpp
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include <assert.h>
|
||||
#include <limits.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include "commands.hpp"
|
||||
|
||||
Reference in New Issue
Block a user