Page Menu
Home
Wildfire Games
Search
Configure Global Search
Log In
Paste
P209
Stan's clang build script on linux
Active
Public
Actions
Authored by
Stan
on Jun 9 2020, 10:56 AM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
#!/bin/sh
export
CC
=
/usr/bin/clang
export
CXX
=
/usr/bin/clang++
CC_VERSION
=
"
$(
$CC
--version
|
sed -e
's/version//g'
-e
's/(.*)//g'
-e
's/\s//'
|
sed 1q
)
"
CXX_VERSION
=
"
$(
$CXX
--version
|
sed -e
's/version//g'
-e
's/(.*)//g'
-e
's/\s//'
|
sed 1q
)
"
CXXFLAGS
=
"-march=native -mtune=native -std=c++17"
cd
"0ad"
&&
svn up
JOBS
=
"
$(
nproc
)
"
SVN_REV
=
"
$(
svnversion -n
)
"
if
[
-e build/svn_revision/svn_revision.txt
]
&&
[
"
$(
cat build/svn_revision/svn_revision.txt
)
"
=
L
\"
"
${
SVN_REV
}
-dev"
\"
]
then
echo
"Already at the latest revision."
else
echo
L
\"
"
${
SVN_REV
}
"
-dev
\"
> build/svn_revision/svn_revision.txt
fi
cd
build/workspaces
&&
echo
"Updating workspaces with
$CC_VERSION
/
$CXX_VERSION
using
$JOBS
jobs..."
#(cd gcc && make clean)
#sh clean-workspaces.sh
sh update-workspaces.sh
CXXFLAGS
=
"
$CXXFLAGS
"
JOBS
=
"
$JOBS
"
2
> ../../../build-libs-errors.log
cd
gcc
&&
echo
"Building pyrogenesis with
$CC_VERSION
/
$CXX_VERSION
using
$JOBS
jobs..."
make
CXXFLAGS
=
"
$CXXFLAGS
"
JOBS
=
"
$JOBS
"
2
> ../../../build-errors.log
cd
../../../../
Event Timeline
Stan
created this paste.
Jun 9 2020, 10:56 AM
Stan
updated the paste's language from
autodetect
to
bash
.
Dec 3 2020, 9:21 AM
Stan
edited the content of this paste.
(Show Details)
Stan
edited the content of this paste.
(Show Details)
Dec 7 2020, 1:28 PM
Stan
edited the content of this paste.
(Show Details)
Dec 7 2020, 1:50 PM
Stan
edited the content of this paste.
(Show Details)
Jan 31 2021, 10:37 AM
Stan
edited the content of this paste.
(Show Details)
Jan 31 2021, 11:04 AM
Stan
changed the visibility from "All Users" to "Public (No Login Required)".
Stan
edited the content of this paste.
(Show Details)
Feb 17 2021, 6:56 PM
Stan
mentioned this in
D3575: Fix assert in topology.cpp
.
Feb 17 2021, 6:59 PM
Log In to Comment