(self)
| 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 |
nothing calls this directly
no test coverage detected