From 53ee7dfe89ef31dbcabcd4161f8850abe0d5c8b8 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 1 Oct 2019 07:54:49 +0100 Subject: [PATCH] gyp: fix undefined name: cflags --> ldflags The current code would raise NameError at runtime. PR-URL: https://github.com/nodejs/node-gyp/pull/1901 Reviewed-By: Rod Vagg --- gyp/pylib/gyp/xcode_emulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gyp/pylib/gyp/xcode_emulation.py b/gyp/pylib/gyp/xcode_emulation.py index 70f41e6bb4..74735c033a 100644 --- a/gyp/pylib/gyp/xcode_emulation.py +++ b/gyp/pylib/gyp/xcode_emulation.py @@ -846,7 +846,7 @@ def GetLdflags(self, configname, product_dir, gyp_to_build_path, arch=None): if self._IsXCTest(): platform_root = self._XcodePlatformPath(configname) if platform_root: - cflags.append('-F' + platform_root + '/Developer/Library/Frameworks/') # noqa TODO @cclauss + ldflags.append('-F' + platform_root + '/Developer/Library/Frameworks/') is_extension = self._IsIosAppExtension() or self._IsIosWatchKitExtension() if sdk_root and is_extension: