summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-04-01 09:55:48 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-04-03 12:27:07 -0700
commit23a12c3306e54d8a94c8eeabd956842c202c9e0b (patch)
tree3e3972c59af4a68e24a680869f5a10f855ee7f8b /test cases
parent60cf59bdaa61adaa14743eb5d6c3d9bdf6791867 (diff)
downloadmeson-23a12c3306e54d8a94c8eeabd956842c202c9e0b.tar.gz
tests/fortran: use fs.copyfile
Since the comment saying we need a generic way to do this is a little outdated.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/fortran/7 generated/meson.build15
1 files changed, 1 insertions, 14 deletions
diff --git a/test cases/fortran/7 generated/meson.build b/test cases/fortran/7 generated/meson.build
index 8f3b3d45d..257ea1e22 100644
--- a/test cases/fortran/7 generated/meson.build
+++ b/test cases/fortran/7 generated/meson.build
@@ -8,20 +8,7 @@ conf_data = configuration_data()
conf_data.set('ONE', 1)
conf_data.set('TWO', 2)
-mod3_f = custom_target(
- 'mod3.f',
- input : 'mod3.f90',
- output : 'mod3.f90',
- # We need a platform agnostic way to do a copy a file, using a custom_target
- # and we need to use the @OUTDIR@, not @OUTPUT@ in order to exercise
- # https://github.com/mesonbuild/meson/issues/9258
- command : [
- find_program('python', 'python3'), '-c',
- 'import sys, shutil; shutil.copy(sys.argv[1], sys.argv[2])',
- '@INPUT@', '@OUTDIR@',
- ],
-)
-
+mod3_f = import('fs').copyfile('mod3.f90', 'mod3.f90')
three = library('mod3', mod3_f)
templates_basenames = ['mod2', 'mod1']