Skip to content

Commit

Permalink
Bump version and make compilation for windows easier
Browse files Browse the repository at this point in the history
  • Loading branch information
fhanau committed Mar 18, 2020
1 parent b748675 commit f0b38f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(ect VERSION 0.8.2 LANGUAGES CXX C)
project(ect VERSION 0.8.3 LANGUAGES CXX C)

include(GNUInstallDirs)
set (CMAKE_CXX_STANDARD 11)
Expand Down Expand Up @@ -30,9 +30,12 @@ add_executable(ect
add_executable(ect::ect ALIAS ect)

if(MINGW)
add_compile_options(-mno-ms-bitfields)
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-mno-ms-bitfields>)
add_compile_options($<$<COMPILE_LANGUAGE:C>:-mno-ms-bitfields>)
endif()



# Use -Ofast in release builds
foreach(var CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_RELWITHDEBINFO CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_RELWITHDEBINFO)
if(${var} MATCHES "-O(2|3)")
Expand Down
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// main.cpp
// Efficient Compression Tool
// Created by Felix Hanau on 12/19/14.
// Copyright (c) 2014-2019 Felix Hanau.
// Copyright (c) 2014-2020 Felix Hanau.

#include "main.h"
#include "support.h"
Expand Down Expand Up @@ -29,8 +29,8 @@ static std::atomic<long long> savings;
static void Usage() {
printf (
"Efficient Compression Tool\n"
"(c) 2014-2019 Felix Hanau.\n"
"Version 0.8.2"
"(c) 2014-2020 Felix Hanau.\n"
"Version 0.8.3"
#ifdef __DATE__
" compiled on %s\n"
#endif
Expand Down

0 comments on commit f0b38f7

Please sign in to comment.