Clement Deschamps
Builds for 1 pipeline passed in 6 minutes 25 seconds

minor fixes for mingw

... ... @@ -83,7 +83,7 @@ greenscript/lib/_gsp_sc.*
greenscript/lib/gsp_sc.py
greenscript/lib/gsp_sc.pyc
greenscript/lib/libgreenscript.a
greenthreads/lib/libgreenthreads.so
greenthreads/lib/libgreenthreads.*
### Eclipse ###
... ...
... ... @@ -336,7 +336,7 @@ link_directories(${GreenSocs_LIB_DIRS})
# CXX flags for example or library compilation.
if(MINGW)
set(CMAKE_CXX_FLAGS "-g -Wall -DSC_INCLUDE_DYNAMIC_PROCESSES -D_REENTRANT -static-libgcc -static-libstdc++")
set(CMAKE_CXX_FLAGS "-g -Wall -DSC_INCLUDE_DYNAMIC_PROCESSES -D_REENTRANT")
else(MINGW)
set(CMAKE_CXX_FLAGS "-g -Wall -DSC_INCLUDE_DYNAMIC_PROCESSES -D_REENTRANT -fPIC")
endif(MINGW)
... ...
... ... @@ -2,7 +2,7 @@ SET(EXECUTABLE "greenthreads_async_wait")
add_executable(${EXECUTABLE} main.cpp)
if(MINGW)
target_link_libraries(${EXECUTABLE} ${SystemC_LIBRARIES} pthread)
target_link_libraries(${EXECUTABLE} ${SystemC_LIBRARIES} pthread greenthreads)
else()
target_link_libraries(${EXECUTABLE} ${SystemC_LIBRARIES} pthread rt greenthreads)
endif()
... ...
... ... @@ -11,7 +11,8 @@
#endif
#ifdef NOSLEEP
#define usleep(time) if (0) usleep(time)
#undef usleep
#define usleep(time) if (0) while (0)
#endif
#include <systemc>
... ...
... ... @@ -2,4 +2,6 @@ add_library(greenthreads SHARED
../src/greenthreads.cpp
)
target_link_libraries(greenthreads ${SystemC_LIBRARIES})
install(TARGETS greenthreads DESTINATION lib)
... ...