From 2a8f23ff8aa29514d8e003ecce1808aa242af292 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 18 Mar 2018 10:28:36 +0100 Subject: Fix crash when building project with no source files --- backend/ninja/Ninja.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/ninja') diff --git a/backend/ninja/Ninja.cpp b/backend/ninja/Ninja.cpp index ead91a7..044fb64 100644 --- a/backend/ninja/Ninja.cpp +++ b/backend/ninja/Ninja.cpp @@ -318,7 +318,7 @@ namespace backend else { const PkgConfigFlags &pkgConfigFlag = pkgConfigFlagsResult.unwrap(); - if (!pkgConfigFlag.linkerFlags.empty()) + if (dynamicLinkerFlagCallback && !pkgConfigFlag.linkerFlags.empty()) dynamicLinkerFlagCallback(pkgConfigFlag.linkerFlags); if(!pkgConfigFlag.cflags.empty()) cflagsCallbackFunc(pkgConfigFlag.cflags); -- cgit v1.2.3