not use this marco on nx windows (#258)
* not use this marco on nx windows * nx windows not need this compile options
This commit is contained in:
parent
40e0ab05b8
commit
d576db3d0f
|
|
@ -62,16 +62,10 @@ if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h)
|
|||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h "#pragma once\n#define OSCL_UNUSED_ARG(x) (void)(x)")
|
||||
endif()
|
||||
|
||||
if(WINDOWS OR NX_WINDOWS)
|
||||
target_compile_options(pvmp3dec PRIVATE
|
||||
#-fsanitize=signed-integer-overflow
|
||||
/FI ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h
|
||||
#
|
||||
)
|
||||
else()
|
||||
target_compile_options(pvmp3dec PRIVATE
|
||||
#-fsanitize=signed-integer-overflow
|
||||
-include ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h
|
||||
#
|
||||
)
|
||||
if (NOT NX_WINDOWS)
|
||||
target_compile_options(pvmp3dec PRIVATE
|
||||
#-fsanitize=signed-integer-overflow
|
||||
-include ${CMAKE_CURRENT_BINARY_DIR}/pvmp3dec_tmp_def.h
|
||||
#
|
||||
)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -139,7 +139,9 @@
|
|||
|
||||
uint16 pvmp3_decode_huff_cw_tab0(tmp3Bits *pMainData)
|
||||
{
|
||||
#if (CC_PLATFORM != CC_PLATFORM_NX_WINDOWS)
|
||||
OSCL_UNUSED_ARG(pMainData);
|
||||
#endif
|
||||
return(0);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue