Skip to content

Commit

Permalink
Fix build support gcc8 for other arch
Browse files Browse the repository at this point in the history
  • Loading branch information
shuai132 committed Aug 31, 2022
1 parent e24223e commit 32cf0de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/PlayMIDIFromSPIFFS/PlayMIDIFromSPIFFS.ino
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Do not build on GCC8, GCC8 has a compiler bug

#if defined(ARDUINO_ARCH_RP2040) || (__GNUC__ == 8)
#if defined(ARDUINO_ARCH_RP2040) || ((__GNUC__ == 8) && (__XTENSA__))
void setup() {}
void loop() {}
#else
Expand Down
2 changes: 1 addition & 1 deletion src/AudioGeneratorMIDI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

#include "AudioGeneratorMIDI.h"

#if __GNUC__ == 8
#if (__GNUC__ == 8) && (__XTENSA__)
// Do not build, GCC8 has a compiler bug
#else // __GNUC__ == 8

Expand Down
2 changes: 1 addition & 1 deletion src/AudioGeneratorMIDI.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef _AUDIOGENERATORMIDI_H
#define _AUDIOGENERATORMIDI_H

#if __GNUC__ == 8
#if (__GNUC__ == 8) && (__XTENSA__)
// Do not build, GCC8 has a compiler bug
#else // __GNUC__ == 8

Expand Down

0 comments on commit 32cf0de

Please sign in to comment.