Forráskód Böngészése

Updated NaCl toolchain to v49.

Branimir Karadžić 9 éve
szülő
commit
9c19c10620
2 módosított fájl, 16 hozzáadás és 20 törlés
  1. 4 8
      include/bx/os.h
  2. 12 12
      scripts/toolchain.lua

+ 4 - 8
include/bx/os.h

@@ -34,14 +34,10 @@
 #		include <pthread.h> // mach_port_t
 #	endif // BX_PLATFORM_*
 
-#	if BX_PLATFORM_NACL
-#		include <sys/nacl_syscalls.h> // nanosleep
-#	else
-#		include <time.h> // nanosleep
-#		if !BX_PLATFORM_PS4
-#			include <dlfcn.h> // dlopen, dlclose, dlsym
-#		endif // !BX_PLATFORM_PS4
-#	endif // BX_PLATFORM_NACL
+#	include <time.h> // nanosleep
+#	if !BX_PLATFORM_PS4 && !BX_PLATFORM_NACL
+#		include <dlfcn.h> // dlopen, dlclose, dlsym
+#	endif // !BX_PLATFORM_PS4 && !BX_PLATFORM_NACL
 
 #	if BX_PLATFORM_ANDROID
 #		include <malloc.h> // mallinfo

+ 12 - 12
scripts/toolchain.lua

@@ -291,11 +291,11 @@ function toolchain(_buildDir, _libDir)
 				print("Set NACL_SDK_ROOT enviroment variable.")
 			end
 
-			naclToolchain = "$(NACL_SDK_ROOT)/toolchain/win_x86_newlib/bin/x86_64-nacl-"
+			naclToolchain = "$(NACL_SDK_ROOT)/toolchain/win_x86_glibc/bin/x86_64-nacl-"
 			if os.is("macosx") then
-				naclToolchain = "$(NACL_SDK_ROOT)/toolchain/mac_x86_newlib/bin/x86_64-nacl-"
+				naclToolchain = "$(NACL_SDK_ROOT)/toolchain/mac_x86_glibc/bin/x86_64-nacl-"
 			elseif os.is("linux") then
-				naclToolchain = "$(NACL_SDK_ROOT)/toolchain/linux_x86_newlib/bin/x86_64-nacl-"
+				naclToolchain = "$(NACL_SDK_ROOT)/toolchain/linux_x86_glibc/bin/x86_64-nacl-"
 			end
 
 			premake.gcc.cc  = naclToolchain .. "gcc"
@@ -309,11 +309,11 @@ function toolchain(_buildDir, _libDir)
 				print("Set NACL_SDK_ROOT enviroment variable.")
 			end
 
-			naclToolchain = "$(NACL_SDK_ROOT)/toolchain/win_arm_newlib/bin/arm-nacl-"
+			naclToolchain = "$(NACL_SDK_ROOT)/toolchain/win_arm_glibc/bin/arm-nacl-"
 			if os.is("macosx") then
-				naclToolchain = "$(NACL_SDK_ROOT)/toolchain/mac_arm_newlib/bin/arm-nacl-"
+				naclToolchain = "$(NACL_SDK_ROOT)/toolchain/mac_arm_glibc/bin/arm-nacl-"
 			elseif os.is("linux") then
-				naclToolchain = "$(NACL_SDK_ROOT)/toolchain/linux_arm_newlib/bin/arm-nacl-"
+				naclToolchain = "$(NACL_SDK_ROOT)/toolchain/linux_arm_glibc/bin/arm-nacl-"
 			end
 
 			premake.gcc.cc  = naclToolchain .. "gcc"
@@ -938,10 +938,10 @@ function toolchain(_buildDir, _libDir)
 		linkoptions { "-melf32_nacl" }
 
 	configuration { "x32", "nacl", "Debug" }
-		libdirs { "$(NACL_SDK_ROOT)/lib/newlib_x86_32/Debug" }
+		libdirs { "$(NACL_SDK_ROOT)/lib/glibc_x86_32/Debug" }
 
 	configuration { "x32", "nacl", "Release" }
-		libdirs { "$(NACL_SDK_ROOT)/lib/newlib_x86_32/Release" }
+		libdirs { "$(NACL_SDK_ROOT)/lib/glibc_x86_32/Release" }
 
 	configuration { "x64", "nacl" }
 		targetdir (path.join(_buildDir, "nacl-x64/bin"))
@@ -950,10 +950,10 @@ function toolchain(_buildDir, _libDir)
 		linkoptions { "-melf64_nacl" }
 
 	configuration { "x64", "nacl", "Debug" }
-		libdirs { "$(NACL_SDK_ROOT)/lib/newlib_x86_64/Debug" }
+		libdirs { "$(NACL_SDK_ROOT)/lib/glibc_x86_64/Debug" }
 
 	configuration { "x64", "nacl", "Release" }
-		libdirs { "$(NACL_SDK_ROOT)/lib/newlib_x86_64/Release" }
+		libdirs { "$(NACL_SDK_ROOT)/lib/glibc_x86_64/Release" }
 
 	configuration { "nacl-arm" }
 		buildoptions {
@@ -964,10 +964,10 @@ function toolchain(_buildDir, _libDir)
 		libdirs { path.join(_libDir, "lib/nacl-arm") }
 
 	configuration { "nacl-arm", "Debug" }
-		libdirs { "$(NACL_SDK_ROOT)/lib/newlib_arm/Debug" }
+		libdirs { "$(NACL_SDK_ROOT)/lib/glibc_arm/Debug" }
 
 	configuration { "nacl-arm", "Release" }
-		libdirs { "$(NACL_SDK_ROOT)/lib/newlib_arm/Release" }
+		libdirs { "$(NACL_SDK_ROOT)/lib/glibc_arm/Release" }
 
 	configuration { "pnacl" }
 		targetdir (path.join(_buildDir, "pnacl/bin"))