authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-02-10 21:47:18-07:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2022-02-12 11:18:23+01:00
log1c23321d03a48558b02c2faf818b82811b8ab11d
treee0ec9fac44baf07886c85eb84ea9908b27c22479
parent166db1a3ed7eca9b04b0626eaea8de0634ab9667

stage1: fix softfloat not getting correct endianness

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

3 files changed, 5 insertions(+), 0 deletions(-)

CMakeLists.txt+3
......@@ -791,6 +791,9 @@ add_library(opt_c_util STATIC ${OPTIMIZED_C_SOURCES})
791791set_target_properties(opt_c_util PROPERTIES
792792 COMPILE_FLAGS "${OPTIMIZED_C_FLAGS}"
793793)
794target_include_directories(opt_c_util PRIVATE
795 "${CMAKE_SOURCE_DIR}/deps/SoftFloat-3e-prebuilt"
796)
794797
795798add_library(zigstage1 STATIC ${STAGE1_SOURCES})
796799set_target_properties(zigstage1 PROPERTIES
deps/SoftFloat-3e/source/include/primitiveTypes.h+1
......@@ -37,6 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3737#ifndef primitiveTypes_h
3838#define primitiveTypes_h 1
3939
40#include "platform.h"
4041#include <stdint.h>
4142
4243#ifdef SOFTFLOAT_FAST_INT64
deps/SoftFloat-3e/source/include/softfloat_types.h+1
......@@ -37,6 +37,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3737#ifndef softfloat_types_h
3838#define softfloat_types_h 1
3939
40#include "platform.h"
4041#include <stdint.h>
4142
4243/*----------------------------------------------------------------------------