MCPcopy Create free account
hub / github.com/nodejs/node / test_GetCflags

Method test_GetCflags

tools/gyp/pylib/gyp/xcode_emulation_test.py:16–31  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 self.skipTest("This test only runs on macOS")
15
16 def test_GetCflags(self):
17 target = {
18 "type": "static_library",
19 "configurations": {
20 "Release": {},
21 },
22 }
23 configuration_name = "Release"
24 xcode_settings = XcodeSettings(target)
25 cflags = xcode_settings.GetCflags(configuration_name, "arm64")
26
27 # Do not quote `-arch arm64` with spaces in one string.
28 self.assertEqual(
29 cflags,
30 ["-fasm-blocks", "-mpascal-strings", "-Os", "-gdwarf-2", "-arch", "arm64"],
31 )
32
33 def GypToBuildPath(self, path):
34 return path

Callers

nothing calls this directly

Calls 2

GetCflagsMethod · 0.95
XcodeSettingsClass · 0.90

Tested by

no test coverage detected