Changeset 26092


Ignore:
Timestamp:
03/14/21 16:24:28 (4 years ago)
Author:
jdquinn
Message:

CHG: Adjustments for Windows builds

Location:
issm/trunk-jpl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/etc/environment.sh

    r26039 r26092  
    1 # Modifies path-related envrionment variables based on which external packages
     1# Modifies path-related environment variables based on which external packages
    22# have been installed.
    33#
     
    184184#######################
    185185
    186 OS=$(uname -s)
    187 
    188 if [[ "${OS}" == MINGW* ]]; then
     186MINGW=0
     187if [[ $(uname -s) == MINGW* ]]; then
     188        MINGW=1
    189189        MSMPI_ROOT="${ISSM_EXT_DIR}/msmpi/install"
    190190        if [ -d "${MSMPI_ROOT}" ]; then
    191191                export MSMPI_ROOT # Used in installation of ParMETIS, ScaLAPACK
    192                 path_prepend "${ISSM_DIR}/bin" # Allows dynamic loaded to find DLLs
    193192                cpath_prepend "${MSMPI_ROOT}/include"
    194193                library_path_prepend "${MSMPI_ROOT}/lib"
     
    293292        ld_library_path_append "${BLAS_ROOT}/lib"
    294293
    295         if [[ "${OS}" == MINGW* ]]; then
     294        if [[ ${MINGW} -eq 1 ]]; then
    296295                path_append "${BLAS_ROOT}/lib" # Allows dynamic loaded to find DLLs
    297296        fi
     
    304303        ld_library_path_append "${LAPACK_ROOT}/lib"
    305304
    306         if [[ "${OS}" == MINGW* ]]; then
     305        if [[ ${MINGW} -eq 1 ]]; then
    307306                path_append "${LAPACK_ROOT}/lib" # Allows dynamic loaded to find DLLs
    308307        fi
     
    315314        ld_library_path_prepend "${METIS_ROOT}/lib"
    316315
    317         if [[ "${OS}" == MINGW* ]]; then
     316        if [[ ${MINGW} -eq 1 ]]; then
    318317                path_append "${METIS_ROOT}/lib" # Allows dynamic loaded to find DLLs
    319318        fi
     
    325324        library_path_append "${MUMPS_ROOT}/lib"
    326325
    327         if [[ "${OS}" == MINGW* ]]; then
     326        if [[ ${MINGW} -eq 1 ]]; then
    328327                path_append "${MUMPS_ROOT}/lib" # Allows dynamic loaded to find DLLs
    329328        fi
     
    336335        ld_library_path_prepend "${PARMETIS_ROOT}/lib"
    337336
    338         if [[ "${OS}" == MINGW* ]]; then
     337        if [[ ${MINGW} -eq 1 ]]; then
    339338                path_append "${PARMETIS_ROOT}/lib" # Allows dynamic loaded to find DLLs
    340339        fi
     
    346345        library_path_append "${SCALAPACK_ROOT}/lib"
    347346
    348         if [[ "${OS}" == MINGW* ]]; then
     347        if [[ ${MINGW} -eq 1 ]]; then
    349348                path_append "${SCALAPACK_ROOT}/lib" # Allows dynamic loaded to find DLLs
    350349        fi
     
    363362        ld_library_path_prepend "${PETSC_ROOT}/lib"
    364363
    365         if [[ "${OS}" == MINGW* ]]; then
     364        if [[ ${MINGW} -eq 1 ]]; then
    366365                path_append "${PETSC_ROOT}/lib" # Allows dynamic loaded to find DLLs
    367366        fi
     
    541540        dyld_library_path_append "${TRIANGLE_ROOT}/lib"
    542541
    543         if [[ "${OS}" == MINGW* ]]; then
     542        if [[ ${MINGW} -eq 1 ]]; then
    544543                path_append "${TRIANGLE_ROOT}/lib" # Allows dynamic loaded to find DLLs
    545544        fi
  • issm/trunk-jpl/jenkins/jenkins.sh

    r26045 r26092  
    219219fi
    220220
    221 # Source here to include any newly installed externalpackages on the path.
     221# Source here to include any newly-installed external packages on the path
    222222source ${ISSM_DIR}/etc/environment.sh
    223223
     
    227227fi
    228228
    229 # Set CXX/CC flags for JS runs after exnteralpackages to avoid conflicts during their compilation
     229# Set CXX/CC flags for JS runs after external packages to avoid conflicts
     230# during their compilation
    230231#
    231232# TODO:
     
    235236# - Revisit enviroment variables (especially EMCC_CFLAGS) once support for
    236237#       Fortran has been accomplished.
     238#
    237239CXX_PREVIOUS=$CXX
    238240CC_PREVIOUS=$CC
     
    311313# {{{
    312314if [ $MATLAB_TEST -eq 1 ]; then
     315        MINGW=0
     316        if [[ $(uname -s) == MINGW* ]]; then
     317                MINGW=1
     318                if [ -z "${ISSM_DIR_WIN}+x" ]; then
     319                        export ISSM_DIR_WIN=$(cygpath -w "${ISSM_DIR}")
     320                fi
     321        fi
     322
    313323        #Launch all tests on different cpus
    314324        for (( i=1;i<=$NUMCPUS_RUN;i++ )); do
     
    335345EOF
    336346                cd $ISSM_DIR/test/NightlyRun
    337                 if [[ "${OS}" == CYGWIN* || "${OS}" == MINGW* ]]; then
     347                if [[ "${OS}" == CYGWIN* || ${MINGW} -eq 1 ]]; then
    338348                        $MATLAB_PATH/bin/matlab -nodesktop -nosplash -nojvm -r "addpath ${ISSM_DIR_WIN}/src/m/dev; devpath; addpath ${ISSM_DIR_WIN}/nightlylog; matlab_run$i" -logfile ${ISSM_DIR_WIN}/nightlylog/matlab_log$i.log &
    339349                else
     
    343353
    344354        # Wait for MATLAB to exit
     355        #
     356        # TODO:
     357        # - Replace by adding -wait option to above calls to matlab?
     358        #
    345359        if [[ "${OS}" == CYGWIN* ]]; then
    346360                sleep 5;
Note: See TracChangeset for help on using the changeset viewer.