Supermodel is successfully compiling on CLANG!!!

Technical discussion for those interested in Supermodel development and Model 3 reverse engineering. Prospective contributors welcome.
Forum rules
Keep it classy!

  • No ROM requests or links.
  • Do not ask to be a play tester.
  • Do not ask about release dates.
  • No drama!

Supermodel is successfully compiling on CLANG!!!

Postby zuppa_di_pesce » Sun Oct 25, 2020 1:55 pm

As a mere exercise in style, here's the steps (for ArchLinux):
Code: Select all
### install clang
sudo pacman -S clang

### create a new modified Makefile
cp /path/to/Supermodel/svn/sources/Makefiles/Makefile.UNIX /path/to/Supermodel/svn/sources/Makefiles/MakefileCLANG.UNIX

### set correct CLANG path inside MakefileCLANG.UNIX
#
# Toolchain
#
CC = /usr/bin/clang-10
CXX = /usr/bin/clang++
LD = /usr/bin/clang-10

### create/update the symbolic link to the newly created MakefileCLANG.UNIX
ln -sf /path/to/Supermodel/svn/sources/Makefiles/MakefileCLANG.UNIX /path/to/Supermodel/svn/sources/Makefile

### it's compiling time!
make -j$(nproc)
"Did you surfcast that fish?" - "Kinda... But... That wasn't a fish... It was a GNU!"
User avatar
zuppa_di_pesce
 
Posts: 120
Joined: Fri Jun 12, 2020 1:51 pm
Location: surfCASTING on a beach

Re: Supermodel is successfully compiling on CLANG!!!

Postby dmanlfc » Mon Dec 27, 2021 8:20 pm

Awesome - thanks for posting.
dmanlfc
 
Posts: 3
Joined: Wed Jan 20, 2021 6:54 pm


Return to The Dark Room

Who is online

Users browsing this forum: No registered users and 1 guest