summaryrefslogtreecommitdiff
path: root/mesonbuild/backend/xcodebackend.py
diff options
context:
space:
mode:
authorL. E. Segovia <amy@amyspark.me>2024-04-09 22:08:59 -0300
committerL. E. Segovia <amy@amyspark.me>2024-04-09 22:11:04 -0300
commit5e10033eb5aebeaa835a2eab800defad68916ce5 (patch)
tree7d8d69ce6e9f50b6359bd6d1fd7efbe682bf66eb /mesonbuild/backend/xcodebackend.py
parent53ec050e3606d26f847209bd2b4703cd0b23289a (diff)
downloadmeson-5e10033eb5aebeaa835a2eab800defad68916ce5.tar.gz
backends: Add Nasm support to Xcode through a custom build rule
Diffstat (limited to 'mesonbuild/backend/xcodebackend.py')
-rw-r--r--mesonbuild/backend/xcodebackend.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index 2d1512977..467cd1a6d 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -777,7 +777,12 @@ class XCodeBackend(backends.Backend):
# Yasm doesn't generate escaped build rules
commands += self.compiler_to_generator_args(target, compiler, output='"$SCRIPT_OUTPUT_FILE_0"', input='"$SCRIPT_INPUT_FILE"', depfile=None)
else:
- commands += self.compiler_to_generator_args(target, compiler, output='"$SCRIPT_OUTPUT_FILE_0"', input='"$SCRIPT_INPUT_FILE"', depfile='"$(dirname "$SCRIPT_OUTPUT_FILE_0")/$(basename "$SCRIPT_OUTPUT_FILE_0" .o).d"', extras=['$OTHER_INPUT_FILE_FLAGS'])
+ commands += self.compiler_to_generator_args(target,
+ compiler,
+ output='"$SCRIPT_OUTPUT_FILE_0"',
+ input='"$SCRIPT_INPUT_FILE"',
+ depfile='"$(dirname "$SCRIPT_OUTPUT_FILE_0")/$(basename "$SCRIPT_OUTPUT_FILE_0" .o).d"',
+ extras=['$OTHER_INPUT_FILE_FLAGS'])
buildrule.add_item('script', self.to_shell_script(commands))
objects_dict.add_item(idval, buildrule, 'PBXBuildRule')