From 09168610a4f0891f4e257b74c8d2aa67c1f41f01 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 12 Oct 2018 23:54:23 +0200 Subject: [PATCH] The absolute path is now passed to plat_dir_create() instead of the relative path; The makefile now support passing a number of jobs to flto. --- src/pc.c | 6 +++--- src/win/Makefile.mingw | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/pc.c b/src/pc.c index 5e601e7c1..2d23b35a1 100644 --- a/src/pc.c +++ b/src/pc.c @@ -8,7 +8,7 @@ * * Main emulator module where most things are controlled. * - * Version: @(#)pc.c 1.0.82 2018/10/11 + * Version: @(#)pc.c 1.0.83 2018/10/12 * * Authors: Sarah Walker, * Miran Grca, @@ -426,8 +426,8 @@ usage: /* If the specified path does not yet exist, create it. */ - if (! plat_dir_check(path)) - plat_dir_create(path); + if (! plat_dir_check(usr_path)) + plat_dir_create(usr_path); } /* Make sure we have a trailing backslash. */ diff --git a/src/win/Makefile.mingw b/src/win/Makefile.mingw index 374124e96..10a7d238a 100644 --- a/src/win/Makefile.mingw +++ b/src/win/Makefile.mingw @@ -8,7 +8,7 @@ # # Makefile for Win32 (MinGW32) environment. # -# Version: @(#)Makefile.mingw 1.0.128 2018/10/04 +# Version: @(#)Makefile.mingw 1.0.129 2018/10/12 # # Authors: Miran Grca, # Fred N. van Kempen, @@ -27,6 +27,9 @@ endif ifndef DEV_BUILD DEV_BUILD := n endif +ifndef FLTO +FLTO := 1 +endif ifeq ($(DEV_BUILD), y) ifndef DEBUG @@ -244,7 +247,7 @@ else ifeq ($(OPTIM), y) AOPTIM := -mtune=native ifndef COPTIM - COPTIM := -O3 -flto + COPTIM := -O3 -flto=$(FLTO) endif else ifndef COPTIM