Skip to content

Commit

Permalink
try again 13
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Anibal committed Dec 2, 2023
1 parent a5640b8 commit 348b51b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,27 @@ if find_file_script.returncode() == 0
else
error('Failed to find the file')
endif
# Run the script to find the file
find_file_script = run_command('find_native_file.sh')

# Check if the command was successful
if find_file_script.returncode() == 0
# Get the file path from the script output
file_path = find_file_script.stdout().strip()

# Now read the file using a second run_command
read_file_command = run_command('cat', file_path)
if read_file_command.returncode() == 0
# Print the contents of the file
message('Contents of the file:\n' + read_file_command.stdout())
else
error('Failed to read the file contents')
endif
else
error('Failed to find the file')
endif



# Adding at project level causes many spurious -lgfortran flags.
add_languages('fortran', native: false)
Expand Down

0 comments on commit 348b51b

Please sign in to comment.