Skip to content

Commit

Permalink
fix bug ir static lib (#55109)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbo9674 authored Jul 4, 2023
1 parent 6d5d9f2 commit d7e04ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,12 @@ else()
)
endif()

if(NOT WITH_SHARED_IR)
if(WIN32)
add_definitions(-DIR_API=)
endif()
endif()

if(WITH_STRIP)
find_program(STRIP_PATH strip)
if(NOT STRIP_PATH OR NOT LINUX)
Expand Down
4 changes: 0 additions & 4 deletions paddle/ir/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ endfunction()

if(WITH_SHARED_IR)
add_definitions(-DIR_DLL_EXPORT)
else()
if(WIN32)
add_definitions(-DIR_API)
endif()
endif()

add_subdirectory(core)
Expand Down

0 comments on commit d7e04ed

Please sign in to comment.