stage1: fix softfloat not getting correct endianness

needed to include platform.h in more places so that LITTLEENDIAN will be
defined appropriately.

closes #10860
This commit is contained in:
Andrew Kelley 2022-02-10 21:47:18 -07:00 committed by Jakub Konka
parent 166db1a3ed
commit 1c23321d03
3 changed files with 5 additions and 0 deletions

View File

@ -791,6 +791,9 @@ add_library(opt_c_util STATIC ${OPTIMIZED_C_SOURCES})
set_target_properties(opt_c_util PROPERTIES set_target_properties(opt_c_util PROPERTIES
COMPILE_FLAGS "${OPTIMIZED_C_FLAGS}" COMPILE_FLAGS "${OPTIMIZED_C_FLAGS}"
) )
target_include_directories(opt_c_util PRIVATE
"${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e-prebuilt"
)
add_library(zigstage1 STATIC ${STAGE1_SOURCES}) add_library(zigstage1 STATIC ${STAGE1_SOURCES})
set_target_properties(zigstage1 PROPERTIES set_target_properties(zigstage1 PROPERTIES

View File

@ -37,6 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef primitiveTypes_h #ifndef primitiveTypes_h
#define primitiveTypes_h 1 #define primitiveTypes_h 1
#include "platform.h"
#include <stdint.h> #include <stdint.h>
#ifdef SOFTFLOAT_FAST_INT64 #ifdef SOFTFLOAT_FAST_INT64

View File

@ -37,6 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#ifndef softfloat_types_h #ifndef softfloat_types_h
#define softfloat_types_h 1 #define softfloat_types_h 1
#include "platform.h"
#include <stdint.h> #include <stdint.h>
/*---------------------------------------------------------------------------- /*----------------------------------------------------------------------------