Add linux-gcc to project name.

This commit is contained in:
Бранимир Караџић
2024-10-26 12:01:49 -07:00
parent 6e87e0438c
commit ec6671443d
4 changed files with 9 additions and 10 deletions

View File

@@ -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

View File

@@ -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"

View File

@@ -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]")

View File

@@ -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)
{ {