Skip to content

Commit f95cc64

Browse files
committed
Host writer function is passed as a function pointer
The naive way of setting the function for flushing library output to the host was found to be problematic on Windows and Mac OS X yielding undefined symbols at the library linking stage. Using a function pointer gives greater flexibility and avoids this non-cross-platform behaviour. The signature for the function has been simplified to accept only one argument, i.e. the output to be printed. For Fortran hosts, the length can in fact be computed on-the-fly, without the need to call the `pcmsolver_c2f_string` function.
1 parent 1988cb5 commit f95cc64

File tree

16 files changed

+272
-305
lines changed

16 files changed

+272
-305
lines changed

.appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ before_build:
6868
- cd %APPVEYOR_BUILD_FOLDER%
6969
# Workaround for CMake not wanting sh.exe on PATH for MinGW
7070
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
71-
- python setup.py --generator="%GENERATOR%" --cmake-options="-DENABLE_FORTRAN_API=ON"
71+
- python setup.py --generator="%GENERATOR%"
7272
- cd build
7373

7474
build_script:

0 commit comments

Comments
 (0)