Skip to content

Commit

Permalink
force use compiler on Windows (#1017)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson-numerical-software authored Dec 1, 2023
1 parent 9d19164 commit 5c9e9bd
Show file tree
Hide file tree
Showing 45 changed files with 169 additions and 10 deletions.
5 changes: 4 additions & 1 deletion modules/mex/tests/test_engine.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
% <--C/C++ COMPILER REQUIRED-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
destinationdir = [tempdir(), 'test_engine/'];
if isdir(destinationdir)
rmdir(destinationdir, 's');
Expand Down
4 changes: 3 additions & 1 deletion modules/mex/tests/test_examples.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
% <--C/C++ COMPILER REQUIRED-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
run([modulepath('mex'), '/examples/mex_engine_demo_1.m'])
filename = [tempdir(), 'mex_engine_demo_1/mex_engine_demo_1'];
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mexAtExit.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexAtExit') == 0
test_dir = [tempdir(), 'mexAtExit'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mexCallMATLAB.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexCallMATLAB') == 0
test_dir = [tempdir(), 'mexCallMATLAB'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mexCallMATLABWithTrap.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
%=============================================================================
% <--ENGLISH IMPOSED-->
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexCallMATLABWithTrap') == 0
test_dir = [tempdir(), 'mexCallMATLABWithTrap'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mexEvalString.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexEvalString') == 0
test_dir = [tempdir(), 'mexEvalString'];
if isdir(test_dir)
Expand Down
3 changes: 3 additions & 0 deletions modules/mex/tests/test_mexEvalStringWithTrap.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
% LICENCE_BLOCK_END
%=============================================================================
% <--ENGLISH IMPOSED-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexEvalStringWithTrap') == 0
test_dir = [tempdir(), 'mexEvalStringWithTrap'];
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mexFunctionName.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexFunctionName') == 0
test_dir = [tempdir(), 'mexFunctionName'];
if isdir(test_dir)
Expand Down
4 changes: 3 additions & 1 deletion modules/mex/tests/test_mexGetVariable.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
% <--ADV-CLI MODE-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexGetVariable') == 0
test_dir = [tempdir(), 'mexGetVariable'];
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mexInterleavedComplex.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
tmpPath = tempname();
mkdir(tmpPath);
status = copyfile('mexInterleavedComplex.c', tmpPath);
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mexLock.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexLock') == 0
test_dir = [tempdir(), 'mexLock'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mexPrintf.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexPrintf') == 0
test_dir = [tempdir(), 'mexPrintf'];
if isdir(test_dir)
Expand Down
4 changes: 3 additions & 1 deletion modules/mex/tests/test_mexPutVariable.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
% <--ADV-CLI MODE-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexPutVariable') == 0
test_dir = [tempdir(), 'mexPutVariable'];
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mexUnlock.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mexUnlock') == 0
test_dir = [tempdir(), 'mexUnlock'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxAddField.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxAddField') == 0
test_dir = [tempdir(), 'mxAddField'];
if isdir(test_dir)
Expand Down
3 changes: 3 additions & 0 deletions modules/mex/tests/test_mxAssert.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
% LICENCE_BLOCK_END
%=============================================================================
% <--ENGLISH IMPOSED-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxAssert') == 0
test_dir = [tempdir(), 'mxAssert'];
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxAssertS.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
%=============================================================================
% <--ENGLISH IMPOSED-->
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxAssertS') == 0
test_dir = [tempdir(), 'mxAssertS'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxCreateCharArray.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxCreateCharArray') == 0
test_dir = [tempdir(), 'mxCreateCharArray'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxCreateCharMatrixFromStrings.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxCreateCharMatrixFromStrings') == 0
test_dir = [tempdir(), 'mxCreateCharMatrixFromStrings'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxCreateDoubleMatrix.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxCreateDoubleMatrix') == 0
test_dir = [tempdir(), 'mxCreateDoubleMatrix'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxCreateDoubleScalar.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxCreateDoubleScalar') == 0
test_dir = [tempdir(), 'mxCreateDoubleScalar'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxCreateSparse.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxCreateSparse') == 0
test_dir = [tempdir(), 'mxCreateSparse'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxCreateString.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxCreateString') == 0
test_dir = [tempdir(), 'mxCreateString'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxCreateStringFromNChars.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxCreateStringFromNChars') == 0
test_dir = [tempdir(), 'mxCreateStringFromNChars'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxCreateStructArray.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxCreateStructArray') == 0
test_dir = [tempdir(), 'mxCreateStructArray'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxDuplicateArrayInterleavedComplex.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxDuplicateArrayInterleavedComplex') == 0
test_dir = [tempdir(), 'mxDuplicateArray_interleaved'];
if isdir(test_dir)
Expand Down
4 changes: 3 additions & 1 deletion modules/mex/tests/test_mxDuplicateArray_cell.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
% <--ADV-CLI MODE-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxDuplicateArray') == 0
test_dir = [tempdir(), 'mxDuplicateArray_cell'];
Expand Down
4 changes: 3 additions & 1 deletion modules/mex/tests/test_mxDuplicateArray_double.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
% <--ADV-CLI MODE-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxDuplicateArray') == 0
test_dir = [tempdir(), 'mxDuplicateArray_double'];
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxDuplicateArray_graphic_handle.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
%=============================================================================
% <--ADV-CLI MODE-->
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxDuplicateArray') == 0
test_dir = [tempdir(), 'mxDuplicateArray_gh'];
if isdir(test_dir)
Expand Down
4 changes: 3 additions & 1 deletion modules/mex/tests/test_mxDuplicateArray_integer.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
% <--ADV-CLI MODE-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxDuplicateArray') == 0
test_dir = [tempdir(), 'mxDuplicateArray_integer'];
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxDuplicateArray_qml_object.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
%=============================================================================
% <--ADV-CLI MODE-->
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxDuplicateArray') == 0
test_dir = [tempdir(), 'mxDuplicateArray_qml'];
if isdir(test_dir)
Expand Down
4 changes: 3 additions & 1 deletion modules/mex/tests/test_mxDuplicateArray_sparse.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
% <--ADV-CLI MODE-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxDuplicateArray') == 0
test_dir = [tempdir(), 'mxDuplicateArray_sparse'];
Expand Down
4 changes: 3 additions & 1 deletion modules/mex/tests/test_mxDuplicateArray_struct.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
% <--ADV-CLI MODE-->
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxDuplicateArray') == 0
test_dir = [tempdir(), 'mxDuplicateArray_struct'];
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxGetClassName.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
%=============================================================================
% <--ADV-CLI MODE-->
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxGetClassName') == 0
test_dir = [tempdir(), 'mxGetClassName'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxGetFieldByNumber.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxGetFieldByNumber') == 0
test_dir = [tempdir(), 'mxGetFieldByNumber'];
if isdir(test_dir)
Expand Down
4 changes: 4 additions & 0 deletions modules/mex/tests/test_mxGetFieldNameByNumber.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
% SPDX-License-Identifier: LGPL-3.0-or-later
% LICENCE_BLOCK_END
%=============================================================================
if ispc() && ~havecompiler()
configuremsvc();
end
%=============================================================================
if exist('mxGetFieldNameByNumber') == 0
test_dir = [tempdir(), 'mxGetFieldNameByNumber'];
if isdir(test_dir)
Expand Down
Loading

0 comments on commit 5c9e9bd

Please sign in to comment.