aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-05-07 12:22:29 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-05-10 13:36:35 -0700
commitdc564a71a3a1d60683978eb91fb11a7de4684280 (patch)
treed7aaa774ab8ea6131b4a10cd743aba42109191e4
parentac5b1d1bc8418e82d955b8ff0e13fdd95de774be (diff)
downloadmeson-dc564a71a3a1d60683978eb91fb11a7de4684280.zip
meson-dc564a71a3a1d60683978eb91fb11a7de4684280.tar.gz
meson-dc564a71a3a1d60683978eb91fb11a7de4684280.tar.bz2
tests/123: For MSVC like compilers to treat the .S file like a .c file
Which is required for ICL to work correctly, as it otherwise assumes that the .S file is a .o/.obj file.
-rw-r--r--test cases/common/123 llvm ir and assembly/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/test cases/common/123 llvm ir and assembly/meson.build b/test cases/common/123 llvm ir and assembly/meson.build
index a67c6c6..2826e88 100644
--- a/test cases/common/123 llvm ir and assembly/meson.build
+++ b/test cases/common/123 llvm ir and assembly/meson.build
@@ -41,11 +41,12 @@ foreach lang : ['c', 'cpp']
error('MESON_SKIP_TEST: ML (masm) not found')
endif
# Preprocess file (ml doesn't support pre-processing)
+ # Force the intput to be C (/Tc) because ICL otherwise assumes it's an object (.obj) file
preproc_name = lang + square_base + '.i'
square_preproc = custom_target(lang + square_impl + 'preproc',
input : square_impl,
output : preproc_name,
- command : [cl, '/EP', '/P', '/Fi' + preproc_name, '@INPUT@'] + uscore_args)
+ command : [cl, '/EP', '/P', '/Fi' + preproc_name, '/Tc', '@INPUT@'] + uscore_args)
# Use assembled object file instead of the original .S assembly source
square_impl = custom_target(lang + square_impl,
input : square_preproc,