mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 21:04:52 +08:00
CXX for watcher-c
This commit is contained in:
parent
9a98fd9cff
commit
7e35de8a0e
@ -18,7 +18,7 @@ trait watcher
|
|||||||
{
|
{
|
||||||
shell()->cd($this->source_dir . '/watcher-c')
|
shell()->cd($this->source_dir . '/watcher-c')
|
||||||
->initializeEnv($this)
|
->initializeEnv($this)
|
||||||
->exec(getenv('CC') . ' -c -o libwatcher-c.o ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -Wall -Wextra -fPIC')
|
->exec(getenv('CXX') . ' -c -o libwatcher-c.o ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -Wall -Wextra -fPIC')
|
||||||
->exec(getenv('AR') . ' rcs libwatcher-c.a libwatcher-c.o');
|
->exec(getenv('AR') . ' rcs libwatcher-c.a libwatcher-c.o');
|
||||||
|
|
||||||
copy($this->source_dir . '/watcher-c/libwatcher-c.a', BUILD_LIB_PATH . '/libwatcher-c.a');
|
copy($this->source_dir . '/watcher-c/libwatcher-c.a', BUILD_LIB_PATH . '/libwatcher-c.a');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user