Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e3ff6f8
Enable static compilation
pfultz2 Apr 23, 2026
4ddc5d6
Build using -fPIC
pfultz2 Apr 23, 2026
7ceac6a
Use one flag
pfultz2 Apr 23, 2026
6ec09c9
Udpate year
pfultz2 Apr 23, 2026
ed0ce09
Use build interface
pfultz2 Apr 23, 2026
9dcb64d
Set embed default
pfultz2 Apr 23, 2026
47affde
Remove duplicate shared libs
pfultz2 Apr 23, 2026
6c6f2c4
Disable extra warnings
pfultz2 Apr 24, 2026
8447684
Use static_cast to get around warnings instead
pfultz2 Apr 24, 2026
91396c1
Merge branch 'develop' into static-lib
pfultz2 May 5, 2026
9885a11
Merge branch 'develop' into static-lib
pfultz2 May 6, 2026
67767c3
Fix the default
pfultz2 May 6, 2026
ebcfdbf
Add build for static lib
pfultz2 May 6, 2026
001596e
Static lib fixits
pfultz2 May 7, 2026
d3e762e
Only register targets for windows
pfultz2 May 7, 2026
a2de4a8
Add dependency on ref target
pfultz2 May 7, 2026
7e65a45
Merge branch 'develop' into static-lib
pfultz2 May 7, 2026
4275092
Update year
pfultz2 May 7, 2026
62f1356
Skip package build for static build since its too large
pfultz2 May 8, 2026
575ae05
Add target for lazy loading ref
pfultz2 May 11, 2026
82e3533
Fix transistive linking
pfultz2 May 11, 2026
bb9ed2d
Check for debs
pfultz2 May 11, 2026
dec6a73
Make is posix compliant
pfultz2 May 11, 2026
878c694
Merge branch 'develop' into static-lib
pfultz2 May 15, 2026
c481037
Use if
pfultz2 May 15, 2026
e2aa1d3
Add static builds to windows
pfultz2 May 18, 2026
7b0939a
Add static define for export
pfultz2 May 18, 2026
03a502f
Set correct target name
pfultz2 May 18, 2026
545154d
Try public
pfultz2 May 18, 2026
0ea49d1
Merge branch 'develop' into static-lib2
pfultz2 May 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
configuration:
- Release
- Debug
shared:
- "On"
- "Off"


steps:
Expand Down Expand Up @@ -73,6 +76,7 @@ jobs:
run: |
rbuild build -d cget -s gh-win-cpu -G Ninja -T tests \
-DMIGRAPHX_DISABLE_LARGE_BUFFER_TESTS=On \
-DBUILD_SHARED_LIBS=${{ matrix.shared }} \
-DCTEST_TIMEOUT=5000
cd build
cmake --build . --target driver
Expand Down
5 changes: 5 additions & 0 deletions cmake/ExportHeader.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ function(migraphx_generate_export_header TARGET)
string(REPLACE "_" "/" __directory ${TARGET})
string(TOLOWER ${__directory} __directory)
endif()
string(MAKE_C_IDENTIFIER "${TARGET}" __target_id)
string(TOUPPER "${TARGET}" __base_name)
set(__file_name ${CMAKE_CURRENT_BINARY_DIR}/include/${__directory}/export.h)
generate_export_header(${TARGET} EXPORT_FILE_NAME ${__file_name})
target_include_directories(${TARGET} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>)
if(NOT BUILD_SHARED_LIBS)
target_compile_definitions(${TARGET} PUBLIC ${__base_name}_STATIC_DEFINE)
endif()
rocm_install(FILES ${__file_name} DESTINATION include/${__directory})
endfunction()
Loading