-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe5afe2
commit 257fd83
Showing
148 changed files
with
334 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Function: TestUndefinedSymbolsAllowed | ||
# | ||
# Test if the linker allows undefined symbols for shared libraries. | ||
# | ||
# UNDEFINED_SYMBOLS_ALLOWED - true if the linker will allow | ||
# undefined symbols for shared libraries | ||
# | ||
|
||
function(Test_Undefined_Symbols_Allowed) | ||
|
||
set(_VAR_NAME "UNDEFINED_SYMBOLS_ALLOWED") | ||
set(_HASH_VAR_NAME "HASH_${_VAR_NAME}") | ||
|
||
# hash the CMAKE_FLAGS passed and check cache to know if we need to rerun | ||
string(MD5 cmake_flags_hash "${CMAKE_SHARED_LINKER_FLAGS}") | ||
|
||
if(NOT DEFINED "${_HASH_VAR_NAME}") | ||
unset("${_VAR_NAME}" CACHE) | ||
elseif(NOT "${${_HASH_VAR_NAME}}" STREQUAL "${cmake_flags_hash}") | ||
unset("${_VAR_NAME}" CACHE) | ||
endif() | ||
|
||
if(NOT DEFINED "${_VAR_NAME}") | ||
message(STATUS "Performing Test ${_VAR_NAME} - ...") | ||
set(test_project_dir "${PROJECT_BINARY_DIR}/CMakeTmp/${_VAR_NAME}") | ||
|
||
file(WRITE "${test_project_dir}/CMakeLists.txt" | ||
" | ||
project(undefined CXX) | ||
add_library(foo SHARED \"foo.cpp\") | ||
") | ||
|
||
file(WRITE "${test_project_dir}/foo.cpp" | ||
" | ||
extern int bar(void); | ||
int foo(void) {return bar()+1;} | ||
") | ||
|
||
if(APPLE) | ||
set(_rpath_arg "-DCMAKE_MACOSX_RPATH='${CMAKE_MACOSX_RPATH}'") | ||
else() | ||
set(_rpath_arg) | ||
endif() | ||
|
||
try_compile(${_VAR_NAME} | ||
"${test_project_dir}" | ||
"${test_project_dir}" | ||
undefined | ||
CMAKE_FLAGS | ||
"-DCMAKE_SHARED_LINKER_FLAGS='${CMAKE_SHARED_LINKER_FLAGS}'" | ||
${_rpath_arg} | ||
OUTPUT_ _VAR_NAME output) | ||
|
||
set(${_HASH_VAR_NAME} "${cmake_flags_hash}" CACHE INTERNAL "hashed try_compile flags") | ||
|
||
if(${_VAR_NAME}) | ||
message(STATUS "Performing Test ${_VAR_NAME} - Success") | ||
else() | ||
message(STATUS "Performing Test ${_VAR_NAME} - Failed") | ||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log | ||
"Performing Test ${_VAR_NAME} failed with the following output:\n" | ||
"${OUTPUT}\n") | ||
endif() | ||
endif() | ||
endfunction() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
libCellML v0.3.104 Changelog | ||
============================ | ||
|
||
Python bindings | ||
--------------- | ||
|
||
* Shift to use dynamic lookup for undefined symbols in shared libraries by `@hsorby <https://github.com/hsorby>`_ [`#1040 <https://github.com/cellml/libcellml/pull/1040>`_]. | ||
|
||
Contributors | ||
------------ | ||
|
||
.. image:: https://avatars.githubusercontent.com/u/778048?v=4 | ||
:target: https://github.com/hsorby | ||
:height: 32 | ||
:width: 32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ Changelogs | |
|
||
.. toctree:: | ||
|
||
changelog_v0.3.104 | ||
changelog_v0.3.103 | ||
changelog_v0.3.102 | ||
changelog_v0.3.101 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_computed_var_on_rhs/model.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_computed_var_on_rhs/model.external.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/resources/generator/algebraic_eqn_computed_var_on_rhs/model.external.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_computed_var_on_rhs/model.external.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/resources/generator/algebraic_eqn_computed_var_on_rhs/model.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_computed_var_on_rhs/model.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_const_var_on_rhs/model.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/resources/generator/algebraic_eqn_const_var_on_rhs/model.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_const_var_on_rhs/model.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_constant_on_rhs/model.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/resources/generator/algebraic_eqn_constant_on_rhs/model.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_constant_on_rhs/model.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_derivative_on_rhs/model.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/resources/generator/algebraic_eqn_derivative_on_rhs/model.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_derivative_on_rhs/model.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
tests/resources/generator/algebraic_eqn_derivative_on_rhs_one_component/model.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/resources/generator/algebraic_eqn_derivative_on_rhs_one_component/model.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.