mirror of
https://github.com/dunglas/frankenphp.git
synced 2025-12-24 13:38:11 +08:00
chore: use cc instead of hardcoding compiler
This commit is contained in:
2
.github/workflows/sanitizers.yaml
vendored
2
.github/workflows/sanitizers.yaml
vendored
@@ -107,7 +107,7 @@ jobs:
|
||||
name: Compile edant/watcher
|
||||
run: |
|
||||
cd edant/watcher/watcher-c/
|
||||
clang -o libwatcher.so ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -Wall -Wextra -fPIC -shared ${{ matrix.sanitizer == 'msan' && '-fsanitize=memory -fno-omit-frame-pointer -fno-optimize-sibling-calls' || '' }}
|
||||
"$CC" -o libwatcher.so ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -Wall -Wextra -fPIC -shared ${{ matrix.sanitizer == 'msan' && '-fsanitize=memory -fno-omit-frame-pointer -fno-optimize-sibling-calls' || '' }}
|
||||
sudo cp libwatcher.so /usr/local/lib/libwatcher.so
|
||||
sudo ldconfig
|
||||
-
|
||||
|
||||
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@@ -55,7 +55,7 @@ jobs:
|
||||
name: Compile edant/watcher
|
||||
run: |
|
||||
cd edant/watcher/watcher-c/
|
||||
gcc -o libwatcher.so ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -O3 -Wall -Wextra -fPIC -shared
|
||||
cc -o libwatcher.so ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -O3 -Wall -Wextra -fPIC -shared
|
||||
sudo cp libwatcher.so /usr/local/lib/libwatcher.so
|
||||
sudo ldconfig
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user