Skip to content

Commit

Permalink
Add linux-gcc to project name.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Oct 26, 2024
1 parent 6e87e04 commit ec66714
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
{ config: debug, binsuffix: Debug },
{ config: release, binsuffix: Release },
]
name: linux-${{ matrix.config }}64
name: linux-gcc-${{ matrix.config }}64
runs-on: ubuntu-22.04
steps:
- name: Checkout bx
Expand All @@ -92,7 +92,7 @@ jobs:
run: |
cd bx
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
run: |
cd bx
Expand Down
4 changes: 2 additions & 2 deletions scripts/toolchain.lua
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,13 @@ function toolchain(_buildDir, _libDir)
location (path.join(_buildDir, "projects", _ACTION .. "-tvos-simulator"))

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
premake.gcc.cc = "afl-gcc"
premake.gcc.cxx = "afl-g++"
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
premake.gcc.cc = "clang"
Expand Down
7 changes: 2 additions & 5 deletions tests/filepath_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,12 @@ TEST_CASE("FilePath temp", "[filepath]")
tmp.join("bx.test");
bx::removeAll(tmp, bx::ErrorIgnore{});

bx::Error err;
tmp.join("bx.test/abvgd/555333/test");
REQUIRE(bx::makeAll(tmp, &err) );
REQUIRE(err.isOk() );
REQUIRE(bx::makeAll(tmp, bx::ErrorAssert{}) );

tmp.set(bx::Dir::Temp);
tmp.join("bx.test");
REQUIRE(bx::removeAll(tmp, &err) );
REQUIRE(err.isOk() );
REQUIRE(bx::removeAll(tmp, bx::ErrorAssert{}) );
}

TEST_CASE("FilePath special", "[filepath]")
Expand Down
4 changes: 3 additions & 1 deletion tests/math_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <stdint.h> // intXX_t
#include <limits.h> // UCHAR_*

#if !BX_CRT_MINGW
TEST_CASE("isFinite, isInfinite, isNan", "[math]")
{
for (uint64_t ii = 0; ii < UINT32_MAX; ii += rand()%(1<<13)+1)
Expand All @@ -21,7 +22,7 @@ TEST_CASE("isFinite, isInfinite, isNan", "[math]")
REQUIRE(::__isnanf(u.f) == bx::isNan(u.f) );
REQUIRE(::__isfinitef(u.f) == bx::isFinite(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(!!::isfinite(u.f) == bx::isFinite(u.f) );
REQUIRE(!!::isinf(u.f) == bx::isInfinite(u.f) );
Expand All @@ -32,6 +33,7 @@ TEST_CASE("isFinite, isInfinite, isNan", "[math]")
#endif // BX_PLATFORM_OSX
}
}
#endif // !BX_CRT_MINGW

bool log2_test(float _a)
{
Expand Down

0 comments on commit ec66714

Please sign in to comment.