mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Add linux-gcc to project name.
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@@ -80,7 +80,7 @@ jobs:
|
|||||||
{ config: debug, binsuffix: Debug },
|
{ config: debug, binsuffix: Debug },
|
||||||
{ config: release, binsuffix: Release },
|
{ config: release, binsuffix: Release },
|
||||||
]
|
]
|
||||||
name: linux-${{ matrix.config }}64
|
name: linux-gcc-${{ matrix.config }}64
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout bx
|
- name: Checkout bx
|
||||||
@@ -92,7 +92,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd bx
|
cd bx
|
||||||
tools/bin/linux/genie --gcc=linux-gcc gmake
|
tools/bin/linux/genie --gcc=linux-gcc gmake
|
||||||
make -R -C .build/projects/gmake-linux config=${{ matrix.config }}64 -j$(nproc)
|
make -R -C .build/projects/gmake-linux-gcc config=${{ matrix.config }}64 -j$(nproc)
|
||||||
- name: Check
|
- name: Check
|
||||||
run: |
|
run: |
|
||||||
cd bx
|
cd bx
|
||||||
|
|||||||
@@ -290,13 +290,13 @@ function toolchain(_buildDir, _libDir)
|
|||||||
location (path.join(_buildDir, "projects", _ACTION .. "-tvos-simulator"))
|
location (path.join(_buildDir, "projects", _ACTION .. "-tvos-simulator"))
|
||||||
|
|
||||||
elseif "linux-gcc" == _OPTIONS["gcc"] then
|
elseif "linux-gcc" == _OPTIONS["gcc"] then
|
||||||
location (path.join(_buildDir, "projects", _ACTION .. "-linux"))
|
location (path.join(_buildDir, "projects", _ACTION .. "-linux-gcc"))
|
||||||
|
|
||||||
elseif "linux-gcc-afl" == _OPTIONS["gcc"] then
|
elseif "linux-gcc-afl" == _OPTIONS["gcc"] then
|
||||||
premake.gcc.cc = "afl-gcc"
|
premake.gcc.cc = "afl-gcc"
|
||||||
premake.gcc.cxx = "afl-g++"
|
premake.gcc.cxx = "afl-g++"
|
||||||
premake.gcc.ar = "ar"
|
premake.gcc.ar = "ar"
|
||||||
location (path.join(_buildDir, "projects", _ACTION .. "-linux"))
|
location (path.join(_buildDir, "projects", _ACTION .. "-linux-gcc"))
|
||||||
|
|
||||||
elseif "linux-clang" == _OPTIONS["gcc"] then
|
elseif "linux-clang" == _OPTIONS["gcc"] then
|
||||||
premake.gcc.cc = "clang"
|
premake.gcc.cc = "clang"
|
||||||
|
|||||||
@@ -127,15 +127,12 @@ TEST_CASE("FilePath temp", "[filepath]")
|
|||||||
tmp.join("bx.test");
|
tmp.join("bx.test");
|
||||||
bx::removeAll(tmp, bx::ErrorIgnore{});
|
bx::removeAll(tmp, bx::ErrorIgnore{});
|
||||||
|
|
||||||
bx::Error err;
|
|
||||||
tmp.join("bx.test/abvgd/555333/test");
|
tmp.join("bx.test/abvgd/555333/test");
|
||||||
REQUIRE(bx::makeAll(tmp, &err) );
|
REQUIRE(bx::makeAll(tmp, bx::ErrorAssert{}) );
|
||||||
REQUIRE(err.isOk() );
|
|
||||||
|
|
||||||
tmp.set(bx::Dir::Temp);
|
tmp.set(bx::Dir::Temp);
|
||||||
tmp.join("bx.test");
|
tmp.join("bx.test");
|
||||||
REQUIRE(bx::removeAll(tmp, &err) );
|
REQUIRE(bx::removeAll(tmp, bx::ErrorAssert{}) );
|
||||||
REQUIRE(err.isOk() );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("FilePath special", "[filepath]")
|
TEST_CASE("FilePath special", "[filepath]")
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
#include <stdint.h> // intXX_t
|
#include <stdint.h> // intXX_t
|
||||||
#include <limits.h> // UCHAR_*
|
#include <limits.h> // UCHAR_*
|
||||||
|
|
||||||
|
#if !BX_CRT_MINGW
|
||||||
TEST_CASE("isFinite, isInfinite, isNan", "[math]")
|
TEST_CASE("isFinite, isInfinite, isNan", "[math]")
|
||||||
{
|
{
|
||||||
for (uint64_t ii = 0; ii < UINT32_MAX; ii += rand()%(1<<13)+1)
|
for (uint64_t ii = 0; ii < UINT32_MAX; ii += rand()%(1<<13)+1)
|
||||||
@@ -21,7 +22,7 @@ TEST_CASE("isFinite, isInfinite, isNan", "[math]")
|
|||||||
REQUIRE(::__isnanf(u.f) == bx::isNan(u.f) );
|
REQUIRE(::__isnanf(u.f) == bx::isNan(u.f) );
|
||||||
REQUIRE(::__isfinitef(u.f) == bx::isFinite(u.f) );
|
REQUIRE(::__isfinitef(u.f) == bx::isFinite(u.f) );
|
||||||
REQUIRE(::__isinff(u.f) == bx::isInfinite(u.f) );
|
REQUIRE(::__isinff(u.f) == bx::isInfinite(u.f) );
|
||||||
#elif BX_COMPILER_MSVC || BX_CRT_MINGW
|
#elif BX_COMPILER_MSVC
|
||||||
REQUIRE(!!::isnan(u.f) == bx::isNan(u.f) );
|
REQUIRE(!!::isnan(u.f) == bx::isNan(u.f) );
|
||||||
REQUIRE(!!::isfinite(u.f) == bx::isFinite(u.f) );
|
REQUIRE(!!::isfinite(u.f) == bx::isFinite(u.f) );
|
||||||
REQUIRE(!!::isinf(u.f) == bx::isInfinite(u.f) );
|
REQUIRE(!!::isinf(u.f) == bx::isInfinite(u.f) );
|
||||||
@@ -32,6 +33,7 @@ TEST_CASE("isFinite, isInfinite, isNan", "[math]")
|
|||||||
#endif // BX_PLATFORM_OSX
|
#endif // BX_PLATFORM_OSX
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif // !BX_CRT_MINGW
|
||||||
|
|
||||||
bool log2_test(float _a)
|
bool log2_test(float _a)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user