mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
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:
parent
166db1a3ed
commit
1c23321d03
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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>
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user