fixed makefile

This commit is contained in:
gabime 2014-12-02 02:38:31 +02:00
parent 0e3120ba51
commit d89628bb17
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
CXX = g++
CXXFLAGS = --march=native -Wall -Wshadow -Wextra -pedantic -std=c++11 -pthread -Wl,--no-as-needed -I../include
CXXFLAGS = -march=native -Wall -Wshadow -Wextra -pedantic -std=c++11 -pthread -Wl,--no-as-needed -I../include
CXX_RELEASE_FLAGS = -O3 -flto

View File

@ -27,7 +27,7 @@
//
#include <iostream>
#include "spdlog/spdlog.h"
#include "spdlog/details/format.h"
int main(int, char* [])
{
@ -36,6 +36,8 @@ int main(int, char* [])
try
{
fmt::print("Hello man {} {:1f}\n", 1, 2.2);
return 0;
std::string filename = "logs/spdlog_example";
// Set log level to all loggers to DEBUG and above
spd::set_level(spd::level::DEBUG);