Skip to content

Commit d0da408

Browse files
committed
copy the VERSION file
1 parent 3e21484 commit d0da408

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ci/fypp_deployment.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def pre_process_fypp(args):
117117
copy_folder_with_filter('example',example,
118118
filter_list=['CMakeLists.txt'])
119119
shutil.copy2('ci'+os.sep+'fpm.toml', 'stdlib-fpm'+os.sep+'fpm.toml')
120+
shutil.copy2('VERSION', 'stdlib-fpm'+os.sep+'VERSION')
120121
shutil.copy2('LICENSE', 'stdlib-fpm'+os.sep+'LICENSE')
121122

122123
# Define the folders to search for *.fypp files
@@ -141,7 +142,7 @@ def process_f(file):
141142

142143
return
143144

144-
def fpm_build(unknown):
145+
def fpm_build(args,unknown):
145146
import subprocess
146147
#==========================================
147148
# check compilers
@@ -154,12 +155,13 @@ def fpm_build(unknown):
154155
# Filter out the include paths with -I prefix.
155156
include_paths = [arg for arg in unknown if arg.startswith("-I")]
156157
# Filter out flags
157-
flags = " "
158+
flags = "-cpp "
158159
for idx, arg in enumerate(unknown):
159160
if arg.startswith("--flag"):
160-
flags= unknown[idx+1]
161+
flags= flags + unknown[idx+1]
161162
#==========================================
162163
# build with fpm
164+
os.chdir(args.destdir)
163165
subprocess.run(["fpm build"]+
164166
[" --compiler "]+[FPM_FC]+
165167
[" --c-compiler "]+[FPM_CC]+
@@ -202,4 +204,4 @@ def fpm_build(unknown):
202204
#==========================================
203205
# build using fpm
204206
if args.build:
205-
fpm_build(unknown)
207+
fpm_build(args,unknown)

0 commit comments

Comments
 (0)